aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cipher/ChangeLog5
-rw-r--r--cipher/random.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog
index b3b483dc6..fe46b7b4e 100644
--- a/cipher/ChangeLog
+++ b/cipher/ChangeLog
@@ -1,3 +1,8 @@
+2003-08-21 David Shaw <[email protected]>
+
+ * random.c (getfnc_gather_random): Don't check NAME_OF_DEV_RANDOM
+ twice. Use NAME_OF_DEV_URANDOM.
+
2003-05-24 David Shaw <[email protected]>
* bithelp.h, des.c, random.c, rndlinux.c, sha1.c, blowfish.c,
diff --git a/cipher/random.c b/cipher/random.c
index c6f748fbb..b0e2785b0 100644
--- a/cipher/random.c
+++ b/cipher/random.c
@@ -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;