(test_BN_rand): skip this test if there is no random device
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21043 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -327,6 +327,9 @@ test_BN_rand(void)
|
||||
{
|
||||
BIGNUM *bn;
|
||||
|
||||
if (RAND_status() != 1)
|
||||
return 0;
|
||||
|
||||
bn = BN_new();
|
||||
if (bn == NULL)
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user