From 5eab298f82c97d9181f2fb07deea51db567750b2 Mon Sep 17 00:00:00 2001 From: dequis Date: Thu, 10 Jul 2014 08:07:51 -0300 Subject: 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. --- unix.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'unix.c') diff --git a/unix.c b/unix.c index e1ebb19d..7be82509 100644 --- a/unix.c +++ b/unix.c @@ -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 ); -- cgit v1.2.3