]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r321605:
authorcy <cy@FreeBSD.org>
Thu, 3 Aug 2017 14:22:48 +0000 (14:22 +0000)
committercy <cy@FreeBSD.org>
Thu, 3 Aug 2017 14:22:48 +0000 (14:22 +0000)
commitdeb2c537f5ca5924fc0060f8bb3f7d5ef2b0772d
tree9c3ab36ca92db85402f2520f3f145ed821e6ec05
parent01075602daf16b8df947db27af2c5a701cb9d661
MFC r321605:

As in r315225, discard 3072 bytes of RC4 bytestream instead of 1024.
(This implementation of arc4rand(9) is used by the userland ipftest
utility as it approximates ipfilter kernelspace in userspace.)

PR: 217920
Submitted by: codarren@hackers.mu
Reviewed by: emaste, cem
Approved by: so (implicit, in r315225)
Differential Revision: D11747
Patterned after: r315225
contrib/ipfilter/arc4random.c