Hey, I rewrote the randomizing stuff for RC5 -- can you let me know if it's
any better?

Isaac

On 14-Nov-2000 David A. Walker wrote:
> In my recent explorations of the freeamp playlist code, I discovered
> something very interesting. There are five separate places where
> random_shuffle is called, all of them pertaining to shuffling the playlis
> or adding items to a shuffled list. Three of these functions use my_rand
> as a parameter to random_shuffle, where my_rand is a small function that
> seeds and uses the OS default rand() function. However, the two most used
> functions do not use this, but instead use the STL default random
> generator, which never gets seeded. This results in the shuffle operation
> shuffling the same list the same way every time! The interesting thing is
> that these functions used to use my_rand, but that got commented out. Is
> there a reason behind this?
> 
> -- 
> =D ave
_______________________________________________
[EMAIL PROTECTED]
http://www.freeamp.org/mailman/listinfo/freeamp-dev

Reply via email to