summaryrefslogtreecommitdiff
path: root/thirdparty/openssl/crypto/des/des.c
diff options
context:
space:
mode:
Diffstat (limited to 'thirdparty/openssl/crypto/des/des.c')
-rw-r--r--thirdparty/openssl/crypto/des/des.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thirdparty/openssl/crypto/des/des.c b/thirdparty/openssl/crypto/des/des.c
index 586aed7237..d7374382d8 100644
--- a/thirdparty/openssl/crypto/des/des.c
+++ b/thirdparty/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;