summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2008-07-21 10:31:28 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2008-07-21 10:31:28 +0000
commit0761bd1fe10b90f53def8c577e4edcc61c5b4c29 (patch)
tree52f7ee1849b874b0900fcdf14d2031949506882e /lib/libc
parentdc5aa2110e0e8ff31ca12f0b9d7e87205bf9e908 (diff)
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/gen/arc4random.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/arc4random.c b/lib/libc/gen/arc4random.c
index 21dd09fb73e3..c9f1e7ff65fe 100644
--- a/lib/libc/gen/arc4random.c
+++ b/lib/libc/gen/arc4random.c
@@ -124,7 +124,7 @@ arc4_stir(struct arc4_stream *as)
*/
for (n = 0; n < 1024; n++)
(void) arc4_getbyte(as);
- arc4_count = 400000;
+ arc4_count = 1600000;
}
static inline u_int8_t
@@ -179,6 +179,7 @@ arc4random_stir(void)
THREAD_LOCK();
arc4_check_init();
arc4_stir(&rs);
+ rs_stired = 1;
THREAD_UNLOCK();
}