diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2013-07-04 00:02:10 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2013-07-04 00:02:10 +0000 |
commit | 7d815fd551b61fca7e4e0308ed1449e6bfa02e58 (patch) | |
tree | ee76cc7ff6555da8ae0252bef97f9d1c8ee35ff9 /lib/libc/stdlib/rand.c | |
parent | f72b68a1bf105d8fafac07eb2d91eacddf64b4a9 (diff) |
Notes
Diffstat (limited to 'lib/libc/stdlib/rand.c')
-rw-r--r-- | lib/libc/stdlib/rand.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/libc/stdlib/rand.c b/lib/libc/stdlib/rand.c index 58b37539c3a6..270e63ff156b 100644 --- a/lib/libc/stdlib/rand.c +++ b/lib/libc/stdlib/rand.c @@ -99,7 +99,12 @@ rand_r(unsigned int *ctx) } -static u_long next = 1; +static u_long next = +#ifdef USE_WEAK_SEEDING + 1; +#else + 2; +#endif int rand() |