diff options
author | Ulf Möller <ulf@openssl.org> | 2000-01-21 02:15:56 +0100 |
---|---|---|
committer | Ulf Möller <ulf@openssl.org> | 2000-01-21 02:15:56 +0100 |
commit | e7f97e2d22e386df60c8da63277727a931bf22b7 (patch) | |
tree | 45c42494189d95fada508ac3ff806dee37c00d22 /crypto/bio/bf_nbio.c | |
parent | Some more ifdefs for no-xxx options. (diff) | |
download | openssl-e7f97e2d22e386df60c8da63277727a931bf22b7.tar.xz openssl-e7f97e2d22e386df60c8da63277727a931bf22b7.zip |
Check RAND_bytes() return value or use RAND_pseudo_bytes().
Diffstat (limited to 'crypto/bio/bf_nbio.c')
-rw-r--r-- | crypto/bio/bf_nbio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/bio/bf_nbio.c b/crypto/bio/bf_nbio.c index cbec2bae29..a525e79d4f 100644 --- a/crypto/bio/bf_nbio.c +++ b/crypto/bio/bf_nbio.c @@ -137,7 +137,7 @@ static int nbiof_read(BIO *b, char *out, int outl) BIO_clear_retry_flags(b); #if 0 - RAND_bytes(&n,1); + RAND_pseudo_bytes(&n,1); num=(n&0x07); if (outl > num) outl=num; @@ -178,7 +178,7 @@ static int nbiof_write(BIO *b, char *in, int inl) } else { - RAND_bytes(&n,1); + RAND_pseudo_bytes(&n,1); num=(n&7); } |