summaryrefslogtreecommitdiffstats
path: root/crypto/rand
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-03-15 11:33:16 +0000
committerBodo Möller <bodo@openssl.org>2001-03-15 11:33:16 +0000
commit9f06ce19dd899ea7b2d32c4186adda79cb722fe5 (patch)
tree63d512a401b96f65254b000e4dc72e06897ee79c /crypto/rand
parentba61b14f1d5f52026908d316d7564652dbaf1978 (diff)
Error codes are longs, not ints
Diffstat (limited to 'crypto/rand')
-rw-r--r--crypto/rand/md_rand.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rand/md_rand.c b/crypto/rand/md_rand.c
index d167dea77d..567838f6c3 100644
--- a/crypto/rand/md_rand.c
+++ b/crypto/rand/md_rand.c
@@ -482,12 +482,12 @@ static int ssleay_rand_bytes(unsigned char *buf, int num)
unpredictable */
static int ssleay_rand_pseudo_bytes(unsigned char *buf, int num)
{
- int ret, err;
+ int ret;
ret = RAND_bytes(buf, num);
if (ret == 0)
{
- err = ERR_peek_error();
+ long 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();