summaryrefslogtreecommitdiff
path: root/src/sort_playlist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sort_playlist.cpp')
-rw-r--r--src/sort_playlist.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sort_playlist.cpp b/src/sort_playlist.cpp
index b9d73a53..ba98a96b 100644
--- a/src/sort_playlist.cpp
+++ b/src/sort_playlist.cpp
@@ -197,7 +197,7 @@ void SortPlaylistDialog::sort() const
quick_sort = [this, &song_cmp, &quick_sort, &iter_swap](Iterator first, Iterator last) {
if (last-first > 1)
{
- Iterator pivot = first+rand()%(last-first);
+ Iterator pivot = first+Global::RNG()%(last-first);
iter_swap(pivot, last-1);
pivot = last-1;