aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/rand
diff options
context:
space:
mode:
authorLutz Jänicke <jaenicke@openssl.org>2001-06-07 17:20:50 +0000
committerLutz Jänicke <jaenicke@openssl.org>2001-06-07 17:20:50 +0000
commit47b0f48dd9f849f0149f5a5809292e322e129080 (patch)
tree19103d1c398fb41dd2d29914ba2a019ed23aa971 /crypto/rand
parent44e48abc446cfe40784a234c65f91bbc5fd3841f (diff)
downloadopenssl-47b0f48dd9f849f0149f5a5809292e322e129080.tar.gz
ERR_peek_error() returns "unsigned long".
Diffstat (limited to 'crypto/rand')
-rw-r--r--crypto/rand/md_rand.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c
index c8728a07bf..d4d2f36ad4 100644
--- a/crypto/rand/md_rand.c
+++ b/crypto/rand/md_rand.c
@@ -493,11 +493,12 @@ static int ssleay_rand_bytes(unsigned char *buf, int num)
static int ssleay_rand_pseudo_bytes(unsigned char *buf, int num)
{
int ret;
+ unsigned long err;
ret = RAND_bytes(buf, num);
if (ret == 0)
{
- long err = ERR_peek_error();
+ err = ERR_peek_error();
if (ERR_GET_LIB(err) == ERR_LIB_RAND &&
ERR_GET_REASON(err) == RAND_R_PRNG_NOT_SEEDED)
(void)ERR_get_error();