diff options
author | David Shaw <[email protected]> | 2003-08-13 02:34:20 +0000 |
---|---|---|
committer | David Shaw <[email protected]> | 2003-08-13 02:34:20 +0000 |
commit | 9789ea5ab449d7d03bc08aca3816c93fa8c090f5 (patch) | |
tree | f625299034f03797be92ddd3ac75aa541415eb17 | |
parent | * gnupg.spec.in: Make sure that install-info is called in such a way that (diff) | |
download | gnupg-9789ea5ab449d7d03bc08aca3816c93fa8c090f5.tar.gz gnupg-9789ea5ab449d7d03bc08aca3816c93fa8c090f5.zip |
* random.c (getfnc_gather_random): Don't check NAME_OF_DEV_RANDOM twice.
Use NAME_OF_DEV_URANDOM.
-rw-r--r-- | cipher/ChangeLog | 5 | ||||
-rw-r--r-- | cipher/random.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog index 630f3eb13..6f727a8a0 100644 --- a/cipher/ChangeLog +++ b/cipher/ChangeLog @@ -1,3 +1,8 @@ +2003-08-12 David Shaw <[email protected]> + + * random.c (getfnc_gather_random): Don't check NAME_OF_DEV_RANDOM + twice. Use NAME_OF_DEV_URANDOM. + 2003-07-30 Werner Koch <[email protected]> * idea-stub.c, random.c: Replaced some __MINGW32__ by _WIN32 and diff --git a/cipher/random.c b/cipher/random.c index 635ee2138..baee65c49 100644 --- a/cipher/random.c +++ b/cipher/random.c @@ -142,7 +142,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; |