From 252ea41be8bab992dadabec0e4f1d77650949f4c Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Tue, 24 Dec 2019 14:01:42 -0800 Subject: fixes #1038 Linux should use getentropy or getrandom --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index fa3bac8b..abe6586b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -327,6 +327,9 @@ else () nng_check_func(lockf NNG_HAVE_LOCKF) nng_check_func(flock NNG_HAVE_FLOCK) + nng_check_func(getentropy NNG_HAVE_GETENTROPY) + nng_check_func(getrandom NNG_HAVE_GETRANDOM) + nng_check_func(arc4random_buf NNG_HAVE_ARC4RANDOM) nng_check_lib(rt clock_gettime NNG_HAVE_CLOCK_GETTIME) nng_check_lib(pthread sem_wait NNG_HAVE_SEMAPHORE_PTHREAD) -- cgit v1.2.3-70-g09d2