CVSROOT: /cvs Module name: src Changes by: [email protected] 2015/12/06 19:38:54
Modified files:
usr.bin/nc : netcat.c
Log message:
Get rid of modulo bias and replace the naive shuffle by the
Knuth-Fisher-Yates shuffle to make the random sequence of ports
less biased. Based on the implementation in sys/netinet/ip_id.c.
With helpful input from daniel@ and beck@
ok beck@ despite eye twitching
