From ca3b1b898a759441664e75ea0d1885e36b9defac Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Fri, 14 Jul 2017 20:37:28 +0300 Subject: [PATCH] Restored arc4random unit test after 59fc46dd5e1d. --- auto/unix | 16 ---------------- test/nxt_lib_unit_test.c | 2 -- 2 files changed, 18 deletions(-) diff --git a/auto/unix b/auto/unix index 18256007..59c7f68a 100644 --- a/auto/unix +++ b/auto/unix @@ -3,22 +3,6 @@ # Copyright (C) NGINX, Inc. -nxt_feature="arc4random()" -nxt_feature_name=NXT_HAVE_ARC4RANDOM -nxt_feature_run= -nxt_feature_incs= -nxt_feature_libs= -nxt_feature_test="#include - - int main() { - - (void) arc4random(); - - return 0; - }" -. auto/feature - - # Linux 3.17 getrandom(). nxt_feature="getrandom()" diff --git a/test/nxt_lib_unit_test.c b/test/nxt_lib_unit_test.c index 50615828..bac2258e 100644 --- a/test/nxt_lib_unit_test.c +++ b/test/nxt_lib_unit_test.c @@ -69,11 +69,9 @@ main(int argc, char **argv) #endif -#if !(NXT_HAVE_ARC4RANDOM) if (nxt_random_unit_test(thr) != NXT_OK) { return 1; } -#endif if (nxt_term_parse_unit_test(thr) != NXT_OK) { return 1;