]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
device: timers: seed unsafe rng before use for jitter
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 28 Oct 2021 11:34:21 +0000 (13:34 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 28 Oct 2021 11:34:21 +0000 (13:34 +0200)
commit60683d73614862ba93895bf8a5aebc1e97a4ec52
tree61d905fc08ae93249d561c325b5d415d367b4f9f
parente42c6c4bc2d0d1e6b4f247b98cf4ead8a1b08a2e
device: timers: seed unsafe rng before use for jitter

Forgetting to seed the unsafe rng, the jitter before followed a fixed
pattern, which didn't help when a fleet of computers all boot at once.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
device/timers.go