OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Reyk Floeter (reykcvs.openbsd.org)
Date: Wed Jul 09 2008 - 12:16:51 CDT


CVSROOT: /cvs
Module name: src
Changes by: reykcvs.openbsd.org 2008/07/09 11:16:51

Modified files:
        usr.sbin/relayd: Makefile relay.c relay_udp.c relayd.h
Added files:
        usr.sbin/relayd: shuffle.c

Log message:
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