From c0b4a826d352c87c056c26fcc0c45af525cf7fec Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Mon, 8 Dec 2014 21:52:06 +0000 Subject: [PATCH] Oops, got the sense of the test backwards. Hilarious that we didn't spot it. --- src/lib/libc/stdlib/rand.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); }