From c936f5363305fe28fc90047ba7076c373b2d2ae9 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 10 Oct 2021 23:30:56 +0200 Subject: Fix test PRNG-fiddling on macOS. --- src/KM_prng.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/KM_prng.cpp b/src/KM_prng.cpp index a650eb8..83ca61f 100755 --- a/src/KM_prng.cpp +++ b/src/KM_prng.cpp @@ -157,7 +157,7 @@ public: if (cth_test) { -#ifdef __unix__ +#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) for (unsigned int i = 0; i < len; ++i) buf[i] = rand_r(&m_cth_test_rng_state); #endif -- cgit v1.2.3