Skip to content

Commit

Permalink
error codes are longs, not ints
Browse files Browse the repository at this point in the history
  • Loading branch information
45264 committed Mar 15, 2001
1 parent 5d80941 commit 8562801
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/rand/md_rand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8562801

Please sign in to comment.