summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tokeninit/tokeninit.c
diff options
context:
space:
mode:
authorreyk <reyk@openbsd.org>2008-07-09 17:16:51 +0000
committerreyk <reyk@openbsd.org>2008-07-09 17:16:51 +0000
commit8661b3ff05c7aa2bf195a8016b38b52fc2bdfa15 (patch)
tree207eef9983b2cb374bb9713baa9ea2ae75512e5e /usr.sbin/tokeninit/tokeninit.c
parentremove an unused variable that is a leftover from the old alg. (diff)
downloadwireguard-openbsd-8661b3ff05c7aa2bf195a8016b38b52fc2bdfa15.tar.xz
wireguard-openbsd-8661b3ff05c7aa2bf195a8016b38b52fc2bdfa15.zip
Use OpenBSD's knuth shuffle algorithm of random values from bind to
produce the DNS request ids instead of a simple per-request arc4random(). This ensure randomness but also satisfies the non-repeating property we need. ok deraadt@
Diffstat (limited to 'usr.sbin/tokeninit/tokeninit.c')
0 files changed, 0 insertions, 0 deletions