Files
heimdal/lib
Roland C. Dowdeswell 44a1a2a273 Fix bias in ordering SRV RR results by weight.
In lib/roken/resolve.c, we find rk_dns_srv_order() which re-orders
the results of an SRV RR lookup by the algorithm in RFC2782.  We
fix a bias in the random weight sorting by changing the order of
operations when selecting rnd.  rnd should be a non-zero random
number less than the sum of the weights at a particular priority,
but zero was included as a legitimate output thus biasing the
selection process.  rk_random() % sum is still biased as a 32
bit int modulo a number which doesn't divide 2^32 does not have
a uniform distribution, but the bias should be small enough to
live with for our purposes here.
2016-11-10 04:45:07 -05:00
..
2016-04-16 16:58:08 -05:00
2016-11-08 16:13:14 -06:00
2016-11-09 15:36:04 +00:00
2016-11-08 15:41:38 -06:00
2014-08-22 20:57:24 -07:00
2014-04-25 02:42:17 +02:00
2016-11-09 22:49:03 -06:00
2016-02-26 01:04:31 -06:00
2016-11-08 15:48:40 -05:00
2015-03-21 15:44:48 -04:00
2016-08-11 14:53:25 -05:00
2014-02-18 08:34:32 -08:00
2015-03-21 15:44:48 -04:00