summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-10-10 23:30:56 +0200
committerCarl Hetherington <cth@carlh.net>2021-10-10 23:30:56 +0200
commitc936f5363305fe28fc90047ba7076c373b2d2ae9 (patch)
treecce5aec66a7a4b1fee7094c6f6684f7f595180e9
parentbb09615b20d477b0c0663901a2344b5a53846aeb (diff)
Fix test PRNG-fiddling on macOS.macos
-rwxr-xr-xsrc/KM_prng.cpp2
1 files changed, 1 insertions, 1 deletions
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