19 lines
157 B
C
19 lines
157 B
C
|
|
#include <stdlib.h>
|
|
|
|
#ifdef _WIN32
|
|
|
|
static void
|
|
srandom(unsigned seed)
|
|
{
|
|
srand(seed);
|
|
}
|
|
|
|
static long
|
|
random(void)
|
|
{
|
|
return (long) rand();
|
|
}
|
|
|
|
#endif
|