HomeFreeBSD

contrib/apr: Rip out bogus [CS]PRNG implementation

Description

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.

Details

Provenance
cemAuthored on
Parents
rS357300: aic7xxx(4): Fix unintended sign extension in ahd_inq()
Branches
Unknown
Tags
Unknown