Simplify DSA public key handling.
[oweals/openssl.git] / crypto / rand / randtest.c
index 267752e4f554ae4a778fab07bad18ba716f075cd..67acf700ee21a878325f96f5cce6d1e709ca94fc 100644 (file)
@@ -77,8 +77,8 @@ int main(int argc, char **argv)
      */
     long d;
 
-    i = RAND_pseudo_bytes(buf, 2500);
-    if (i < 0) {
+    i = RAND_bytes(buf, 2500);
+    if (i <= 0) {
         printf("init failed, the rand method is not properly installed\n");
         err++;
         goto err;