using urandom instead of random

This commit is contained in:
Jeremy Ellington 2004-05-27 19:12:26 +00:00
parent 77cf4b9622
commit 4c83f69cae

View File

@ -56,7 +56,7 @@
*/ */
int lanplus_seed_prng(unsigned int bytes) int lanplus_seed_prng(unsigned int bytes)
{ {
if (! RAND_load_file("/dev/random", bytes)) if (! RAND_load_file("/dev/urandom", bytes))
return 1; return 1;
else else
return 0; return 0;