RAND_bytes updates
[openssl.git] / apps / enc.c
index 3bf4a6eb040384084400564f3f74c80d69a6c8b2..1739b7ec23aecf71ac35dbb7be17861cf69be58d 100644 (file)
@@ -505,7 +505,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