summaryrefslogtreecommitdiffstats
path: root/lib/libm/src
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2015-12-18 10:55:51 +0000
committertb <tb@openbsd.org>2015-12-18 10:55:51 +0000
commit586aba90b5fe425d6de4716f67ac7f719d7ff805 (patch)
tree8444fdd5cc68ecf72246c2844ca7c48980fa5800 /lib/libm/src
parentSimplify return call of rand() and rand_r() to make it easier to read. (diff)
downloadwireguard-openbsd-586aba90b5fe425d6de4716f67ac7f719d7ff805.tar.xz
wireguard-openbsd-586aba90b5fe425d6de4716f67ac7f719d7ff805.zip
Convert arc4random() to arc4random_uniorm(). Diff by Matthew Martin.
Ensure that arc4random_uniform() doesn't loop by redefining ND6_MAX_DESYNC_FACTOR to be 512, the largest power of two smaller than the RFC-specified 600 seconds. Suggested by florian@ and deraadt@ ok florian@, sthen@ in this form, arc4random change ok djm@, tedu@
Diffstat (limited to 'lib/libm/src')
0 files changed, 0 insertions, 0 deletions