Commit 389cb8ef authored by Ilkka Ollakka's avatar Ilkka Ollakka

use unsigned rand-function in playlist thread

parent 33c4360b
......@@ -195,7 +195,7 @@ static void ResetCurrentlyPlaying( playlist_t *p_playlist,
/* Shuffle the array */
for( unsigned j = p_playlist->current.i_size - 1; j > 0; j-- )
{
unsigned i = ((unsigned)vlc_mrand48()) % (j+1); /* between 0 and j */
unsigned i = vlc_lrand48() % (j+1); /* between 0 and j */
playlist_item_t *p_tmp;
/* swap the two items */
p_tmp = ARRAY_VAL(p_playlist->current, i);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment