aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/des/des.c
diff options
context:
space:
mode:
authorUlf Möller <ulf@openssl.org>2000-01-21 01:15:56 +0000
committerUlf Möller <ulf@openssl.org>2000-01-21 01:15:56 +0000
commite7f97e2d22e386df60c8da63277727a931bf22b7 (patch)
tree45c42494189d95fada508ac3ff806dee37c00d22 /crypto/des/des.c
parent731d9c5fb5d0535e3c84866e3c355cbf21a92a67 (diff)
downloadopenssl-e7f97e2d22e386df60c8da63277727a931bf22b7.tar.gz
Check RAND_bytes() return value or use RAND_pseudo_bytes().
Diffstat (limited to 'crypto/des/des.c')
-rw-r--r--crypto/des/des.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/des/des.c b/crypto/des/des.c
index 5cd337301a..aabd01cc8a 100644
--- a/crypto/des/des.c
+++ b/crypto/des/des.c
@@ -484,7 +484,7 @@ void doencryption(void)
if (feof(DES_IN))
{
for (i=7-rem; i>0; i--)
- RAND_bytes(buf + l++, 1);
+ RAND_pseudo_bytes(buf + l++, 1);
buf[l++]=rem;
ex=1;
len+=rem;