chiark / gitweb /
choose: Select tracks uniformly at random.
authormdw@distorted.org.uk <>
Sun, 20 Apr 2008 18:36:24 +0000 (19:36 +0100)
committermdw@distorted.org.uk <>
Sun, 20 Apr 2008 18:36:24 +0000 (19:36 +0100)
commit4005a0d66ea1aea1475088c998d35f16ef800bba
treedd3a02cffd048f345517cdaac18b2c516c372f19
parent566145652162e02433c1cd461bf9b5e312abbc40
choose: Select tracks uniformly at random.

The previous algorithm had a (very minor) bias towards tracks which are
early in the enumeration order.  This change fixes the bias completely.
server/choose.c