diff options
author | tb <> | 2015-12-07 02:38:54 +0000 |
---|---|---|
committer | tb <> | 2015-12-07 02:38:54 +0000 |
commit | 4d26f018548e418a929ddebcd02db00c053fd576 (patch) | |
tree | d9831e76399642a51694a54ec1ba8536d70a5cb9 /src/lib | |
parent | f449a45336602f59009527a500289cd9d94a9e21 (diff) | |
download | openbsd-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