From 8e2dd649fe7a8e3218e9c77bba5d0c3b649a924a Mon Sep 17 00:00:00 2001 From: Vassil Keremidchiev Date: Thu, 10 Sep 2015 22:58:33 +0300 Subject: #125 If we use OS X and FreeBSD equivalent for urandom() it is working under Windows, too. But tests are not run, yet. --- packages/base/src/Internal/C/vector-aux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'packages/base') diff --git a/packages/base/src/Internal/C/vector-aux.c b/packages/base/src/Internal/C/vector-aux.c index a52b969..0b6b8b6 100644 --- a/packages/base/src/Internal/C/vector-aux.c +++ b/packages/base/src/Internal/C/vector-aux.c @@ -932,7 +932,7 @@ int vectorScan(char * file, int* n, double**pp){ //////////////////////////////////////////////////////////////////////////////// -#if defined (__APPLE__) || (__FreeBSD__) +#if defined (__APPLE__) || (__FreeBSD__) || defined(_WIN32) || defined(WIN32) /* FreeBSD and Mac OS X do not provide random_r(), thread safety cannot be guaranteed. For FreeBSD and Mac OS X, nrand48() is much better than random(). -- cgit v1.2.3