diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2008-07-22 10:31:29 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2008-07-22 10:31:29 +0000 |
| commit | 85986016aef125e66c618421e8103b3d6b621fdb (patch) | |
| tree | 20eacad2e728a4a3256fe970e707e9a56fdd272b /lib/libc | |
| parent | 109c391928c7baec63309f602e64f854f1b1203b (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/gen/arc4random.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/arc4random.c b/lib/libc/gen/arc4random.c index 68d727d743ad..2e6ce118a97b 100644 --- a/lib/libc/gen/arc4random.c +++ b/lib/libc/gen/arc4random.c @@ -123,7 +123,7 @@ arc4_stir(void) /* !done? Ah, what the heck. We'll just take whatever was on the * stack... */ if (!done) { - gettimeofday(&rdat.tv, NULL); + (void)gettimeofday(&rdat.tv, NULL); rdat.pid = getpid(); } @@ -132,12 +132,12 @@ arc4_stir(void) /* * Throw away the first N bytes of output, as suggested in the * paper "Weaknesses in the Key Scheduling Algorithm of RC4" - * by Fluher, Mantin, and Shamir. N=512 is based on + * by Fluher, Mantin, and Shamir. N=768 is based on * suggestions in the paper "(Not So) Random Shuffles of RC4" * by Ilya Mironov. */ if (rs_initialized != 1) { - for (n = 0; n < 512; n++) + for (n = 0; n < 768; n++) (void)arc4_getbyte(); rs_initialized = 1; } |
