libsodium/test/quirks/windows/windows-quirks.h

19 lines
157 B
C
Raw Normal View History

2013-01-20 18:41:17 -05:00
#include <stdlib.h>
#ifdef _WIN32
static void
srandom(unsigned seed)
{
srand(seed);
}
static long
random(void)
{
return (long) rand();
}
#endif