Signed-off-by: Loganaden Velvindron <logan(a)hackers.mu>
---
libc/stdlib/arc4random.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libc/stdlib/arc4random.c b/libc/stdlib/arc4random.c
index 0013612..e7a86e7 100644
--- a/libc/stdlib/arc4random.c
+++ b/libc/stdlib/arc4random.c
@@ -153,9 +153,9 @@ arc4_stir(struct arc4_stream *as)
/*
* Discard early keystream, as per recommendations in:
- *
http://www.wisdom.weizmann.ac.il/~itsik/RC4/Papers/Rc4_ksa.ps
+ *
https://wikileaks.org/ciav7p1/cms/files/NOD%20Cryptographic%20Requirements%…
*/
- for (n = 0; n < 256; n++)
+ for (n = 0; n < 3072; n++)
(void)arc4_getbyte(as);
arc4_count = 1600000;
}
--