(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:
Love Hörnquist Åstrand
2007-06-10 07:57:46 +00:00
parent c855412243
commit f6f9690bd1

View File

@@ -327,6 +327,9 @@ test_BN_rand(void)
{
BIGNUM *bn;
if (RAND_status() != 1)
return 0;
bn = BN_new();
if (bn == NULL)
return 1;