diff --git a/src/lib/libc/stdlib/rand.c b/src/lib/libc/stdlib/rand.c index 618559fd..00390a23 100644 --- a/src/lib/libc/stdlib/rand.c +++ b/src/lib/libc/stdlib/rand.c @@ -48,7 +48,7 @@ __warn_references(rand_r, int rand(void) { - if (rand_deterministic) + if (rand_deterministic == 0) return (arc4random() % ((u_int)RAND_MAX + 1)); return (rand_r(&next)); }