diff options
-rw-r--r-- | tests/Makefile.am.tpl | 4 | ||||
-rw-r--r-- | tests/pidwraptest.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/tests/Makefile.am.tpl b/tests/Makefile.am.tpl index 0b9ae4c..06d48c1 100644 --- a/tests/Makefile.am.tpl +++ b/tests/Makefile.am.tpl | |||
@@ -6,3 +6,7 @@ AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1 | |||
6 | TESTS = | 6 | TESTS = |
7 | check_PROGRAMS = | 7 | check_PROGRAMS = |
8 | EXTRA_DIST = | 8 | EXTRA_DIST = |
9 | |||
10 | if !NO_ARC4RANDOM_BUF | ||
11 | TESTS += pidwraptest.sh | ||
12 | endif | ||
diff --git a/tests/pidwraptest.c b/tests/pidwraptest.c index 75f2cc2..7eb2a0c 100644 --- a/tests/pidwraptest.c +++ b/tests/pidwraptest.c | |||
@@ -1,6 +1,9 @@ | |||
1 | /* | 1 | /* |
2 | * Checks if LibreSSL's PRNG is fork-safe on Linux. | 2 | * Checks if LibreSSL's PRNG is fork-safe. |
3 | * From https://www.agwa.name/blog/post/libressls_prng_is_unsafe_on_linux | 3 | * From https://www.agwa.name/blog/post/libressls_prng_is_unsafe_on_linux |
4 | * This code is in the public domain. | ||
5 | * | ||
6 | * Original source: https://gist.github.com/AGWA/eb84e55ca25a7da1deb0 | ||
4 | */ | 7 | */ |
5 | 8 | ||
6 | #include <openssl/rand.h> | 9 | #include <openssl/rand.h> |