summaryrefslogtreecommitdiffstats
path: root/crypto/openssl/crypto/des/des.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssl/crypto/des/des.c')
-rw-r--r--crypto/openssl/crypto/des/des.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssl/crypto/des/des.c b/crypto/openssl/crypto/des/des.c
index 586aed7..d737438 100644
--- a/crypto/openssl/crypto/des/des.c
+++ b/crypto/openssl/crypto/des/des.c
@@ -456,7 +456,7 @@ void doencryption(void)
len = l - rem;
if (feof(DES_IN)) {
for (i = 7 - rem; i > 0; i--) {
- if (RAND_pseudo_bytes(buf + l++, 1) < 0)
+ if (RAND_bytes(buf + l++, 1) <= 0)
goto problems;
}
buf[l++] = rem;
OpenPOWER on IntegriCloud