From ee30799ac7bde617803fe10c6861a89cd400a0cb Mon Sep 17 00:00:00 2001 From: Carl Philipp Klemm Date: Tue, 10 Mar 2026 00:42:04 +0100 Subject: [PATCH] Fix shuffle mode being constant seeded --- src/SongListModel.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/SongListModel.cpp b/src/SongListModel.cpp index c658f64..caa856a 100644 --- a/src/SongListModel.cpp +++ b/src/SongListModel.cpp @@ -193,11 +193,7 @@ int SongListModel::findNextIndex(int currentIndex, bool shuffle) const return -1; if (shuffle) - { - // Simple random selection for shuffle mode - QRandomGenerator generator; - return generator.bounded(songList.size()); - } + return QRandomGenerator::global()->bounded(songList.size()); // Sequential playback int nextIndex = currentIndex + 1;