diff --git a/lib/hcrypto/test_bn.c b/lib/hcrypto/test_bn.c index a48a8a0da..004a25903 100644 --- a/lib/hcrypto/test_bn.c +++ b/lib/hcrypto/test_bn.c @@ -327,6 +327,9 @@ test_BN_rand(void) { BIGNUM *bn; + if (RAND_status() != 1) + return 0; + bn = BN_new(); if (bn == NULL) return 1;