Commit 91b03350 authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov

ioping: get more randomness on windows

M$ version of rand() returns only 15 bits. Secure rand_s() too slow.
Signed-off-by: default avatarKonstantin Khlebnikov <koct9i@gmail.com>
parent f1827e9c
......@@ -195,7 +195,7 @@ void srandom(unsigned int seed)
long int random(void)
{
return rand();
return rand() * (RAND_MAX + 1) + rand();
}
int nanosleep(const struct timespec *req, struct timespec *rem)
......
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