diff options
| -rw-r--r-- | apps/onplay.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index 106c433..7aa74d3 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -177,6 +177,10 @@ static bool add_to_playlist(int position, bool queue) if (new_playlist) playlist_create(NULL, NULL); + /* always set seed before inserting shuffled */ + if (position == PLAYLIST_INSERT_SHUFFLED) + srand(current_tick); + if (context == CONTEXT_ID3DB) { tagtree_insert_selection_playlist(position, queue); |