aboutsummaryrefslogtreecommitdiffstats
path: root/unix.c
diff options
context:
space:
mode:
authordequis <dx@dxzone.com.ar>2014-07-10 08:07:51 -0300
committerdequis <dx@dxzone.com.ar>2015-01-26 00:27:24 -0300
commit5eab298f82c97d9181f2fb07deea51db567750b2 (patch)
tree52cf08cd26f32661a9fd30fa04904fd85b5dab65 /unix.c
parent11e782892c33d6ecae949bc610c075107c0cda89 (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.c2
1 files changed, 0 insertions, 2 deletions
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 );