summaryrefslogtreecommitdiffstats
path: root/crypto/rand/rand_egd.c
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2000-02-28 20:19:39 +0000
committerUlf Möller <ulf@openssl.org>2000-02-28 20:19:39 +0000
commite64dceab743f0c2f4aef5dbc2b0e479c07bd2049 (patch)
treec6140980f1cacd91674441d1ffc893ab1d03f7a2 /crypto/rand/rand_egd.c
parentc9e1fe33be9d9c60f832c22442cff45bf5a667a5 (diff)
Switch for turning on the predictable "random" number generator.
Diffstat (limited to 'crypto/rand/rand_egd.c')
-rw-r--r--crypto/rand/rand_egd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rand/rand_egd.c b/crypto/rand/rand_egd.c
index d834408bd4..380c7828c3 100644
--- a/crypto/rand/rand_egd.c
+++ b/crypto/rand/rand_egd.c
@@ -97,7 +97,7 @@ int RAND_egd(const char *path)
buf[1] = 255;
write(fd, buf, 2);
if (read(fd, buf, 1) != 1) goto err;
- if (buf[0] == 0) goto err;
+ if (buf[0] == 0) goto err;
num = read(fd, buf, 255);
if (num < 1) goto err;
RAND_seed(buf, num);