From 53be1e1f65bd4e1f6e0810b294131695a962a8cb Mon Sep 17 00:00:00 2001 From: David Sansome Date: Sat, 7 Jun 2014 12:12:08 +1000 Subject: [PATCH] Revert "Use guaranteed random number generator." Fixes #4400 This reverts commit 9f6899ac82e9af47fcec05fa82a68343abfafaca. --- src/playlist/playlist.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/playlist/playlist.cpp b/src/playlist/playlist.cpp index 8a5ba8605..f2fceee59 100644 --- a/src/playlist/playlist.cpp +++ b/src/playlist/playlist.cpp @@ -1914,11 +1914,8 @@ void Playlist::ReshuffleIndices() { // Shuffle them QStringList shuffled_album_keys = album_key_set.toList(); - std::random_shuffle( - shuffled_album_keys.begin(), - shuffled_album_keys.end(), - // http://xkcd.com/221/ - [](int x) { return 4; }); + std::random_shuffle(shuffled_album_keys.begin(), + shuffled_album_keys.end()); // If the user is currently playing a song, force its album to be first. if (current_virtual_index_ != -1) {