libsodium/test/windows/windows-quirks.h
2013-01-20 15:41:17 -08:00

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