diff options
author | Bodo Möller <bodo@openssl.org> | 1999-10-14 17:31:53 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-10-14 17:31:53 +0000 |
commit | 023c8d0b0aec445b680ef5aea2bd2154adb59974 (patch) | |
tree | 183aeab8edf509938d487c37790c608d488c1869 /crypto | |
parent | 673b102c5b265bd6c517ac40ab76e1606a243c08 (diff) |
Use of DEVRANDOM must be #ifdef'ed (the #ifdef was commented out
between SSLeay 0.8.1b and 0.9.0b with no apparent reason).
If we *want* an error when DEVRANDOM is not defined (it always is with
the current e_os.h) we should use #error.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/rand/md_rand.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c index 72c557b19b..0ce390b5c0 100644 --- a/crypto/rand/md_rand.c +++ b/crypto/rand/md_rand.c @@ -255,7 +255,7 @@ static void ssleay_rand_bytes(unsigned char *buf, int num) l=time(NULL); RAND_seed(&l,sizeof(l)); -/* #ifdef DEVRANDOM */ +#ifdef DEVRANDOM /* * Use a random entropy pool device. * Linux 1.3.x and FreeBSD-Current has @@ -275,7 +275,7 @@ static void ssleay_rand_bytes(unsigned char *buf, int num) RAND_seed(tmpbuf,32); memset(tmpbuf,0,32); } -/* #endif */ +#endif #ifdef PURIFY memset(state,0,STATE_SIZE); memset(md,0,MD_DIGEST_LENGTH); |