aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2003-08-21 23:26:57 +0000
committerDavid Shaw <[email protected]>2003-08-21 23:26:57 +0000
commit5ad7dd79442e65a4bf8a779d82f2e929793b61d0 (patch)
tree3773d3d6ed77546cba493f8190fc2ed6229ebba6
parent* gpgv.c: Remove extra semicolon (typo). (diff)
downloadgnupg-5ad7dd79442e65a4bf8a779d82f2e929793b61d0.tar.gz
gnupg-5ad7dd79442e65a4bf8a779d82f2e929793b61d0.zip
* random.c (getfnc_gather_random): Don't check NAME_OF_DEV_RANDOM twice.
Use NAME_OF_DEV_URANDOM.
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;