]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
arc4random(3): Reduce diff with OpenBSD.
authorXin LI <delphij@FreeBSD.org>
Wed, 10 Aug 2022 00:27:54 +0000 (17:27 -0700)
committerXin LI <delphij@FreeBSD.org>
Wed, 10 Aug 2022 00:27:55 +0000 (17:27 -0700)
commite9a2e4d1d28bf608a2ec915e25df9200af98e3b8
tree1fca975860aad0ab02c971fdc0bb8f093f800890
parent1dfa8b73f6a68b5ec202a51021a8ec7ab4b94b8e
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)
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D36088
lib/libc/gen/arc4random.c