]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - test/drbgtest.c
Workaround egd rand source deficiencies
[thirdparty/openssl.git] / test / drbgtest.c
index 111b9d864c0393e87519e12eda1fea27eab5620a..29583b568f0e5bf5f5ea1c7ec41dd4b256fd5c94 100644 (file)
@@ -277,7 +277,7 @@ static int test_drbg_reseed(int expect_success,
 }
 
 
-#if defined(OPENSSL_SYS_UNIX)
+#if defined(OPENSSL_SYS_UNIX) && !defined(OPENSSL_RAND_SEED_EGD)
 /* number of children to fork */
 #define DRBG_FORK_COUNT 9
 /* two results per child, two for the parent */
@@ -895,7 +895,7 @@ err:
 int setup_tests(void)
 {
     ADD_TEST(test_rand_reseed);
-#if defined(OPENSSL_SYS_UNIX)
+#if defined(OPENSSL_SYS_UNIX) && !defined(OPENSSL_RAND_SEED_EGD)
     ADD_ALL_TESTS(test_rand_fork_safety, RANDOM_SIZE);
 #endif
     ADD_TEST(test_rand_prediction_resistance);