12-17-2013, 11:53 AM
Yes, random values may wind up being not random to a human viewer( repeated, etc ), but the odds of that happening significantly over hundreds of thousands of runs is miniscule. The testing for randomness is an interesting field.
I remember one test now {random}\nRand should equal maxRand / 2, with some percentage devation.
Of course, the reason that this particular example is bad has nothing to do with the randomness of the seed, it has to do with the predictability of the seed. The same problem is seen when using the pid as a seed. A malicious user can easily manipulate either one of these.
I remember one test now {random}\nRand should equal maxRand / 2, with some percentage devation.
Of course, the reason that this particular example is bad has nothing to do with the randomness of the seed, it has to do with the predictability of the seed. The same problem is seen when using the pid as a seed. A malicious user can easily manipulate either one of these.