Rockbox mail archiveSubject: Re: randomness and playlists
From: Daniel Stenberg (daniel_at_haxx.se)
On Thu, 2 May 2002, Andrew Jamieson wrote:
[I'll just fill in some more, even though Linus already replied]
> * What are you planning to use as the entropy source for the random seed?
I don't think we need a very complicated way to get a seed. We can get it
> * What algorithm are you thinking of for the iterations (something like
As we will use the rand() function to sort the list of tracks in memory, we
> And how do we stop songs repeating?
Since we're using a list of (scrambled order) tracks we just advance the
Since we scramble the same way always with the same seed, we can use back
We won't repeat the same track until we reach the end of the list and start
> Just trying to make myself feel useful (or at least annoying) ;)
Bouncing ideas and thoughts around is a great way to help out!
-- Daniel Stenberg -- Hacking Archos => http://bjorn.haxx.se/rockbox/
Page was last modified "Jan 10 2012" The Rockbox Crew