]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
contrib/apr: Rip out bogus [CS]PRNG implementation
authorcem <cem@FreeBSD.org>
Thu, 30 Jan 2020 18:12:41 +0000 (18:12 +0000)
committercem <cem@FreeBSD.org>
Thu, 30 Jan 2020 18:12:41 +0000 (18:12 +0000)
commit81656a75b3105273702e5e5c58bb8f3a8a824538
tree6bbad89127689296f1a1d5a855bbdcd32eb8aa43
parent5a64e43439d1dfc1f5203f4e36ba601fc1ee3b1e
contrib/apr: Rip out bogus [CS]PRNG implementation

This construction used some relatively slow design involving SHA2; even if
it were fed real entropy (unclear; external to the design), it did not
handle fork in a safe way, and it was difficult to audit for correctness.
So just rip it out and use the very simple and known-correct arc4random(3)
interface in its place.
contrib/apr/random/unix/apr_random.c