[git commit future 1/1] arc4random.c: replace a comment

Peter S. Mazinger ps.m at gmx.net
Wed Mar 16 19:20:32 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=f3ef4822eec0f7331884d2a2b9113ee7d55c91c6
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/future

Remove pointer to a dead link.

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 libc/stdlib/arc4random.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/libc/stdlib/arc4random.c b/libc/stdlib/arc4random.c
index 55ea7e2..b83fe32 100644
--- a/libc/stdlib/arc4random.c
+++ b/libc/stdlib/arc4random.c
@@ -131,11 +131,11 @@ arc4_stir(struct arc4_stream *as)
 	/*
 	 * Throw away the first N words of output, as suggested in the
 	 * paper "Weaknesses in the Key Scheduling Algorithm of RC4"
-	 * by Fluher, Mantin, and Shamir.
-	 * http://www.wisdom.weizmann.ac.il/~itsik/RC4/Papers/Rc4_ksa.ps
-	 * N = 256 in our case.
+	 * by Fluher, Mantin, and Shamir.  N = 1024 is based on
+	 * suggestions in the paper "(Not So) Random Shuffles of RC4"
+	 * by Ilya Mironov.
 	 */
-	for (n = 0; n < 256 * 4; n++)
+	for (n = 0; n < 1024; n++)
 		arc4_getbyte(as);
 }
 
-- 
1.7.3.4



More information about the uClibc-cvs mailing list