diff options
author | 2015-12-18 10:55:51 +0000 | |
---|---|---|
committer | 2015-12-18 10:55:51 +0000 | |
commit | 586aba90b5fe425d6de4716f67ac7f719d7ff805 (patch) | |
tree | 8444fdd5cc68ecf72246c2844ca7c48980fa5800 /lib/libm/src | |
parent | Simplify return call of rand() and rand_r() to make it easier to read. (diff) | |
download | wireguard-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