diff options
| author | dequis <dx@dxzone.com.ar> | 2014-07-10 08:07:51 -0300 | 
|---|---|---|
| committer | dequis <dx@dxzone.com.ar> | 2015-01-26 00:27:24 -0300 | 
| commit | 5eab298f82c97d9181f2fb07deea51db567750b2 (patch) | |
| tree | 52cf08cd26f32661a9fd30fa04904fd85b5dab65 /unix.c | |
| parent | 11e782892c33d6ecae949bc610c075107c0cda89 (diff) | |
random_bytes: Use /dev/urandom only, don't bother trying /dev/random
Also abort() if there's no /dev/urandom
See http://www.2uo.de/myths-about-urandom/ for details.
Diffstat (limited to 'unix.c')
| -rw-r--r-- | unix.c | 2 | 
1 files changed, 0 insertions, 2 deletions
| @@ -86,8 +86,6 @@ int main( int argc, char *argv[] )   	otr_init();  #endif -	srand( time( NULL ) ^ getpid() ); -	  	global.helpfile = g_strdup( HELP_FILE );  	if( help_init( &global.help, global.helpfile ) == NULL )  		log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE ); | 
