HomeFreeBSD

arc4random(3): Reduce diff with OpenBSD.

Description

arc4random(3): Reduce diff with OpenBSD.

The main change was v1.57 by djm@:

Randomise the rekey interval a little. Previously, the chacha20
instance would be rekeyed every 1.6MB. This makes it happen at a
random point somewhere in the 1-2MB range.

Reviewed by: csprng (markm, cem)
Differential Revision: https://reviews.freebsd.org/D36088

(cherry picked from commit e9a2e4d1d28bf608a2ec915e25df9200af98e3b8)

Details

Provenance
delphijAuthored on Aug 10 2022, 12:27 AM
Differential Revision
D36088: arc4random(3): Reduce diff with OpenBSD.
Parents
rGb66ab4c8b728: tests: Handle platforms with MAXPAGESIZES < 2
Branches
Unknown
Tags
Unknown