I (and I know that allot of people are with me on this one) am annoyed by the way that xmms uses random for playing tracks in 'random' mode. On the site that the link points to you can read about how it does it. http://bugs.xmms.org/show_bug.cgi?id=21 I guess it's to much to ask to find a way that it regenerates the 'virtuel randomized list' everytime you change a song. But on the bottom of the page there is a patch to improve the xmms random a bit (applied the patch manually but didnt really test it). so maybe this patch could be in the standard patch set for xmms. and hopefully someone says "YES! you are right" and can fix the main problem :) Reproducible: Always Steps to Reproduce: 1. use xmms :)
Created attachment 17126 [details, diff] xmms-1.2.8-random.patch here is a copy of that patch that applys cleanly against xmms-1.2.8
ive been running this patch since slightly before i submited it here for 1.2.8 and it has helped *ALOT*
Created attachment 17680 [details, diff] updated patch didnt apply any more due to another patch being a pain one section had changed alot updated the rand it was using not sure if math is right tho
thanks magnade :)
OK, I want to wake this sleeping horse from its slumber. This patch make xmms core dump on solaris because random() returns a number between 0 & 2**31-1 while on linux it returns a number between 0 & RAND_MAX. Can someone please reopen this bug? if it helps save me some time...:)
just a follow up, the RAND_MAX on linux is 2**31-1 while on solaris it is 32767. I will post an updated patch.
Created attachment 51964 [details, diff] updated randomize patch...solarisisms
Comment on attachment 51964 [details, diff] updated randomize patch...solarisisms there is more RAND_MAX in that file
Created attachment 51972 [details, diff] updated updated randomize patch...solarisisms