Use mt19937 random number generator instad of the default one

This commit is contained in:
Hamuko
2016-10-06 02:11:22 +03:00
committed by Andrzej Rybczak
parent cfce9aed08
commit d544b777c3
7 changed files with 26 additions and 12 deletions

View File

@@ -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;