]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
contrib/apr: Rip out bogus [CS]PRNG implementation
authorConrad Meyer <cem@FreeBSD.org>
Thu, 30 Jan 2020 18:12:41 +0000 (18:12 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Thu, 30 Jan 2020 18:12:41 +0000 (18:12 +0000)
commit53345534c8eda4190a50e6fc2290a3ffb4d9ac5d
tree6bbad89127689296f1a1d5a855bbdcd32eb8aa43
parent295e4149b0aa20f26dcec9bea3ac30d19c479e22
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