Use OpenBSD's knuth shuffle algorithm of random values from bind to
authorreyk <reyk@openbsd.org>
Wed, 9 Jul 2008 17:16:51 +0000 (17:16 +0000)
committerreyk <reyk@openbsd.org>
Wed, 9 Jul 2008 17:16:51 +0000 (17:16 +0000)
commit8661b3ff05c7aa2bf195a8016b38b52fc2bdfa15
tree207eef9983b2cb374bb9713baa9ea2ae75512e5e
parent49859387d7ae2b049362d03b19c49d52112c538d
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@
usr.sbin/relayd/Makefile
usr.sbin/relayd/relay.c
usr.sbin/relayd/relay_udp.c
usr.sbin/relayd/relayd.h
usr.sbin/relayd/shuffle.c [new file with mode: 0644]