diff options
| author | Xin LI <delphij@FreeBSD.org> | 2017-03-14 06:00:44 +0000 |
|---|---|---|
| committer | Xin LI <delphij@FreeBSD.org> | 2017-03-14 06:00:44 +0000 |
| commit | 91868665a935a40a2ec41dcd15213269e7d57a73 (patch) | |
| tree | 32dabfa4229d235a37e1e3b6cc4a7dafbfef72ae /sys/libkern | |
| parent | 48fa9d448d3d7a379546e2b3733725a1c47b74ef (diff) | |
Notes
Diffstat (limited to 'sys/libkern')
| -rw-r--r-- | sys/libkern/arc4random.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/libkern/arc4random.c b/sys/libkern/arc4random.c index 86431002ba89..ccda6ad5bd50 100644 --- a/sys/libkern/arc4random.c +++ b/sys/libkern/arc4random.c @@ -84,11 +84,11 @@ arc4_randomstir(struct arc4_s* arc4) /* * 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. (N = 256 in our case.) + * by Fluher, Mantin, and Shamir. (N = 768 in our case.) * * http://dl.acm.org/citation.cfm?id=646557.694759 */ - for (n = 0; n < 256*4; n++) + for (n = 0; n < 768*4; n++) arc4_randbyte(arc4); mtx_unlock(&arc4->mtx); |
