aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/compat/compat.h
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2019-10-28 17:55:33 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2019-10-28 17:55:33 +0100
commit719f1dc2012da30f9378c41dcc394671e1a0920c (patch)
treebfe2be99725ff8ee0cf8475c86d4db6308659f3c /src/compat/compat.h
parentwg-quick: android: check for null in binder cleanup functions (diff)
downloadwireguard-monolithic-historical-jd/ryzen-bug.tar.xz
wireguard-monolithic-historical-jd/ryzen-bug.zip
peerlookup: fall back to get_random_bytes for Ryzen 3000 bugjd/ryzen-bug
In case get_random_u32() fails after 32 tries -- something that should only happen on the Ryzen 3000 which returns -1 everytime if you have the wrong CPU microcode -- we fall back to get_random_bytes(), which is slower, but at least works.
Diffstat (limited to 'src/compat/compat.h')
0 files changed, 0 insertions, 0 deletions