Commit b2969686 authored by Albert Gräf's avatar Albert Gräf

disis_munger: make RANDOM work on Windows

parent 31eb243b
......@@ -38,7 +38,7 @@ For latest changes please see changelog
/* MSVC doesn't know RANDOM(), while GCC's
(at least on Linux) has rand() limit much higher */
#ifndef __GNUC__
#if !defined(__GNUC__) || defined(__MINGW32__)
#define RANDOM() (rand())
#else
#define RANDOM() (random()%32768)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment