summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2015-12-07 02:38:54 +0000
committertb <>2015-12-07 02:38:54 +0000
commit4d26f018548e418a929ddebcd02db00c053fd576 (patch)
treed9831e76399642a51694a54ec1ba8536d70a5cb9 /src/lib
parentf449a45336602f59009527a500289cd9d94a9e21 (diff)
downloadopenbsd-4d26f018548e418a929ddebcd02db00c053fd576.tar.gz
openbsd-4d26f018548e418a929ddebcd02db00c053fd576.tar.bz2
openbsd-4d26f018548e418a929ddebcd02db00c053fd576.zip
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
Diffstat (limited to 'src/lib')
0 files changed, 0 insertions, 0 deletions