aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/rand/randtest.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/rand/randtest.c')
-rw-r--r--crypto/rand/randtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rand/randtest.c b/crypto/rand/randtest.c
index 267752e4f5..67acf700ee 100644
--- a/crypto/rand/randtest.c
+++ b/crypto/rand/randtest.c
@@ -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;