12 lines
326 B
Diff
12 lines
326 B
Diff
--- a/lib/runtime/random.cpp
|
|
+++ b/lib/runtime/random.cpp
|
|
@@ -39,7 +39,7 @@
|
|
if (repeatable) {
|
|
generator.seed(0);
|
|
} else {
|
|
-#ifdef CLOCK_REALTIME
|
|
+#if defined(CLOCK_REALTIME) && !defined(__MINGW32__)
|
|
timespec ts;
|
|
clock_gettime(CLOCK_REALTIME, &ts);
|
|
generator.seed(ts.tv_sec & ts.tv_nsec);
|