# | Line 4 | Line 4 | |
---|---|---|
4 | */ | |
5 | #ifndef _RAD_RANDOM_H_ | |
6 | #define _RAD_RANDOM_H_ | |
7 | + | |
8 | + | #include <stdlib.h> |
9 | + | |
10 | #ifdef __cplusplus | |
11 | extern "C" { | |
12 | #endif | |
13 | ||
14 | < | #ifdef _WIN32 |
12 | < | |
13 | < | #include <stdlib.h> |
14 | < | |
14 | > | #if defined(_WIN32) || defined(_WIN64) |
15 | #if (RAND_MAX <= 65536) | |
16 | #define random() ((long)rand()<<16^(long)rand()<<6^(long)rand()>>4) | |
17 | #else |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |