summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/libc/gen/arc4random.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/gen/arc4random.c b/lib/libc/gen/arc4random.c
index 68d727d..2e6ce11 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;
}
OpenPOWER on IntegriCloud