diff options
author | Max Kellermann <max@duempel.org> | 2009-01-13 21:25:19 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-13 21:25:19 +0100 |
commit | d8fc8ca7bac8f378c4ff7bbc02f22a37ac72a792 (patch) | |
tree | 3622c4b00edf89f97852790151881e7d2336df56 /autogen.sh | |
parent | e7c7e652a33ee143d183d8ba1916fe1bf0f3a980 (diff) | |
download | mpd-d8fc8ca7bac8f378c4ff7bbc02f22a37ac72a792.tar.gz mpd-d8fc8ca7bac8f378c4ff7bbc02f22a37ac72a792.tar.xz mpd-d8fc8ca7bac8f378c4ff7bbc02f22a37ac72a792.zip |
playlist: implement Fisher-Yates shuffle properly
MPD's shuffling algorithm was not implemented well: it considers songs
which were already swapped, making it somewhat non-random.
Fix the Fisher-Yates shuffle algorithm by passing the proper bounds to
the PRNG.
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions