summaryrefslogtreecommitdiff
path: root/test/quirks/windows
diff options
context:
space:
mode:
Diffstat (limited to 'test/quirks/windows')
-rw-r--r--test/quirks/windows/windows-quirks.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/quirks/windows/windows-quirks.h b/test/quirks/windows/windows-quirks.h
new file mode 100644
index 0000000..11d82bf
--- /dev/null
+++ b/test/quirks/windows/windows-quirks.h
@@ -0,0 +1,18 @@
+
+#include <stdlib.h>
+
+#ifdef _WIN32
+
+static void
+srandom(unsigned seed)
+{
+ srand(seed);
+}
+
+static long
+random(void)
+{
+ return (long) rand();
+}
+
+#endif