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