Changeset 5eab298f for unix.c


Ignore:
Timestamp:
2015-01-26T03:27:24Z (9 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
73ee390
Parents:
11e7828
git-author:
dequis <dx@…> (10-07-14 11:07:51)
git-committer:
dequis <dx@…> (26-01-15 03:27:24)
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • unix.c

    r11e7828 r5eab298f  
    8787#endif
    8888       
    89         srand( time( NULL ) ^ getpid() );
    90        
    9189        global.helpfile = g_strdup( HELP_FILE );
    9290        if( help_init( &global.help, global.helpfile ) == NULL )
Note: See TracChangeset for help on using the changeset viewer.