[MPlayer-dev-eng] [PATCH] fix last file with -shuffle
Reimar Döffinger
Reimar.Doeffinger at stud.uni-karlsruhe.de
Fri Nov 5 21:33:59 CET 2004
Hi,
> > this patch fixes the problem that the file specified last is almost
> > always played last.
> > This was cause by incorrect random number range conversion
> > (thanks to the manpage people for the example in the rand manpage that
> > made me think once again ;-) )
> >
> > Greetings,
> > Reimar Döffinger
>
> please apply....although i think rand()%count would make a lot more
> sense. maybe not entirely correct though. :)
Yes, probably. The only reason to do it like that seems to be that the
higher bits are "more random".
Greetings,
Reimar Döffinger
More information about the MPlayer-dev-eng
mailing list