Randomise the rekey interval a little. Previously, the chacha20
authordjm <djm@openbsd.org>
Sun, 31 Jul 2022 05:10:36 +0000 (05:10 +0000)
committerdjm <djm@openbsd.org>
Sun, 31 Jul 2022 05:10:36 +0000 (05:10 +0000)
commitd9204e62266303cba50e9db4c98f48d4c7e39d1d
treed10737f85b8f82163d45401f4e32ab63b51cc17b
parent3d925bf336086bfaf7fb1ff4f4e980e2dadc7b1c
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.

Feedback deraadt@ visa@, ok tb@ visa@
lib/libc/crypt/arc4random.c