summaryrefslogtreecommitdiff
path: root/crypto/openssl/apps/enc.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/apps/enc.c
parentd29c55519589bbc7c6b2e52b787f4cb6226e54a0 (diff)
parente1b483878d9824c63d376895da633b0b96fbbaed (diff)
Notes
Diffstat (limited to 'crypto/openssl/apps/enc.c')
-rw-r--r--crypto/openssl/apps/enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/openssl/apps/enc.c b/crypto/openssl/apps/enc.c
index 7b7c70b132d72..8e2ef27aca34f 100644
--- a/crypto/openssl/apps/enc.c
+++ b/crypto/openssl/apps/enc.c
@@ -509,7 +509,7 @@ int MAIN(int argc, char **argv)
BIO_printf(bio_err, "invalid hex salt value\n");
goto end;
}
- } else if (RAND_pseudo_bytes(salt, sizeof salt) < 0)
+ } else if (RAND_bytes(salt, sizeof salt) <= 0)
goto end;
/*
* If -P option then don't bother writing