diff options
Diffstat (limited to 'apps/enc.c')
-rw-r--r-- | apps/enc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/enc.c b/apps/enc.c index 7b7c70b132..8e2ef27aca 100644 --- a/apps/enc.c +++ b/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 |