* random.c (getfnc_gather_random): Don't check NAME_OF_DEV_RANDOM twice.

Use NAME_OF_DEV_URANDOM.
This commit is contained in:
David Shaw 2003-08-21 23:26:57 +00:00
parent d8273544e1
commit 5ad7dd7944
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-08-21 David Shaw <dshaw@jabberwocky.com>
* random.c (getfnc_gather_random): Don't check NAME_OF_DEV_RANDOM
twice. Use NAME_OF_DEV_URANDOM.
2003-05-24 David Shaw <dshaw@jabberwocky.com>
* bithelp.h, des.c, random.c, rndlinux.c, sha1.c, blowfish.c,

View File

@ -139,7 +139,7 @@ getfnc_gather_random (void))(void (*)(const void*, size_t, int), int,
return fnc;
# ifdef USE_RNDLINUX
if ( !access (NAME_OF_DEV_RANDOM, R_OK)
&& !access (NAME_OF_DEV_RANDOM, R_OK))
&& !access (NAME_OF_DEV_URANDOM, R_OK))
{
fnc = rndlinux_gather_random;
return fnc;