Fix shuffle mode being constant seeded

This commit is contained in:
Carl Philipp Klemm 2026-03-10 00:42:04 +01:00
parent 18e1588d73
commit ee30799ac7

View file

@ -193,11 +193,7 @@ int SongListModel::findNextIndex(int currentIndex, bool shuffle) const
return -1; return -1;
if (shuffle) if (shuffle)
{ return QRandomGenerator::global()->bounded(songList.size());
// Simple random selection for shuffle mode
QRandomGenerator generator;
return generator.bounded(songList.size());
}
// Sequential playback // Sequential playback
int nextIndex = currentIndex + 1; int nextIndex = currentIndex + 1;