RAND_bytes updates
[openssl.git] / crypto / ecdsa / ecdsatest.c
index 31d9c84e99fc78b3ec2ac07f3ceea045491c0b08..c2132da88250d62cd27ed4fae92ae126d08d48d2 100644 (file)
@@ -311,8 +311,7 @@ int test_builtin(BIO *out)
     int nid, ret = 0;
 
     /* fill digest values with some random data */
-    if (!RAND_pseudo_bytes(digest, 20) ||
-        !RAND_pseudo_bytes(wrong_digest, 20)) {
+    if (RAND_bytes(digest, 20) <= 0 || RAND_bytes(wrong_digest, 20) <= 0) {
         BIO_printf(out, "ERROR: unable to get random data\n");
         goto builtin_err;
     }