summaryrefslogtreecommitdiff
path: root/crypto/openssl/crypto/bio/bf_nbio.c
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2016-09-22 13:27:44 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2016-09-22 13:27:44 +0000
commitaeb5019c481d34f2422c200e4751e24ec940fe3f (patch)
tree58485f1ec6fba896abc86fe8ebcb991930ec881f /crypto/openssl/crypto/bio/bf_nbio.c
parentd29c55519589bbc7c6b2e52b787f4cb6226e54a0 (diff)
parente1b483878d9824c63d376895da633b0b96fbbaed (diff)
downloadsrc-test2-aeb5019c481d34f2422c200e4751e24ec940fe3f.tar.gz
src-test2-aeb5019c481d34f2422c200e4751e24ec940fe3f.zip
Notes
Diffstat (limited to 'crypto/openssl/crypto/bio/bf_nbio.c')
-rw-r--r--crypto/openssl/crypto/bio/bf_nbio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/openssl/crypto/bio/bf_nbio.c b/crypto/openssl/crypto/bio/bf_nbio.c
index a04f32a00817..4842bb4c82ff 100644
--- a/crypto/openssl/crypto/bio/bf_nbio.c
+++ b/crypto/openssl/crypto/bio/bf_nbio.c
@@ -139,7 +139,7 @@ static int nbiof_read(BIO *b, char *out, int outl)
BIO_clear_retry_flags(b);
#if 1
- if (RAND_pseudo_bytes(&n, 1) < 0)
+ if (RAND_bytes(&n, 1) <= 0)
return -1;
num = (n & 0x07);
@@ -179,7 +179,7 @@ static int nbiof_write(BIO *b, const char *in, int inl)
num = nt->lwn;
nt->lwn = 0;
} else {
- if (RAND_pseudo_bytes(&n, 1) < 0)
+ if (RAND_bytes(&n, 1) <= 0)
return -1;
num = (n & 7);
}