diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2019-02-27 12:58:26 +0100 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2019-02-27 12:58:26 +0100 |
commit | 4b9d5c066f5ac5914ac78dfa041f3c166e729d82 (patch) | |
tree | ca65a7610bed3d2f3e564e088c26eeeaa0260640 | |
parent | f2ec58545c8b48a8a664d9839bc73129231839ee (diff) |
do not use /dev/random on windows
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
-rw-r--r-- | src/utils.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/utils.c b/src/utils.c index 5647d24..6188543 100644 --- a/src/utils.c +++ b/src/utils.c @@ -160,10 +160,7 @@ int pt_random(void) { #ifdef HAVE_ARC4RANDOM return arc4random(); #else -#ifdef HAVE_RANDOM -#ifndef TIME_UTC -#define TIME_UTC 1 -#endif +#if defined(HAVE_RANDOM) && !defined(_WIN32) static int rng_fd = -1; int rnd_val; if (rng_fd < 0) |