Fix shuffle mode being constant seeded
This commit is contained in:
parent
18e1588d73
commit
ee30799ac7
1 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue