Summary: | random wallpaper changing algorithm not random enough | ||
---|---|---|---|
Product: | kdesktop | Reporter: | Timo Nentwig <kde> |
Component: | general | Assignee: | David Faure <faure> |
Status: | CLOSED NOT A BUG | ||
Severity: | normal | CC: | finex |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Timo Nentwig
2003-09-28 15:22:20 UTC
did you figure, it's against every logic that there are lotto wins? The code does rand() % count which is the standard way to get a random number in [0, count[ 1) use multiple rand()s 2) use the pgp/gpg-like approach and generate random values by using mouse movement, keyboards input and the system time. whatever random implementation you use, you can't exclude that you see the same picture after the second switch (it's random after all). The only way around this is creating a random list on startup and play that one by one. For sure, but I can exclude that I do see the same pictures all the time and most of the pictures never or very seldomly. This bug report is about making it *more* random than it is right now. Subject: Re: random wallpaper changing algorithm not random enough
> For sure, but I can exclude that I do see the same pictures all the time and most of the pictures never or very seldomly.
Stephan is correct, the only way to do this is to randomize the list ONCE
and then go through it.
This is the proper implementation of randomized wallpapers anyway, not
"using random to pick the next one each time".
Bug closed. Kdesktop is no more mantained. |