Bug#44807: Hayes randomize mode unusable

Eray Ozkural erayo at cs.bilkent.edu.tr
Sun Jul 7 22:25:15 BST 2002


On Sunday 07 July 2002 18:33, Rob Kaper wrote:
>
> Your weighting would also work. Even if a file is played more than once,
> well, bad luck, but that is perfectly possible for true randomness as well.
> Given a high weight to unopened directories (and their subdirectories,
> where parents directories have a weight prportional to their contents),
> that should be sufficient.
>

Well by definition a sequence of integers subject to random permutation with 
uniform distribution does not allow duplicate integers ;)

What I'd like to know is, given a directory can I query the _number_ of inodes 
under that directory with a single disk access? Phalynx told me the kernel 
provides for this, but there isn't a system call. How do we pull this trick? 
Any API you guys know of that does this?

Thanks,

-- 
Eray Ozkural <erayo at bilkent.edu.tr>
Comp. Sci. Dept., Bilkent University, Ankara
www: http://www.cs.bilkent.edu.tr/~erayo
GPG public key fingerprint: 360C 852F 88B0 A745 F31B  EA0F 7C07 AE16 874D 539C



More information about the kde-multimedia mailing list