On 18/09/12 17:05, monarch_dodra wrote:
As you can see from the ouput, that is not very random. That's just the "tip of
the iceberg". *Anything* in phobos that iterates on a range, such a fill,
filter, or whatever, will not advance the PRNG, arguably breaking it.

At best, a "global" PRNG will work, provided it is never ever passed as an
argument to a method.

Just to note, we already have an existing problem with this in Phobos, with the RandomSample functionality. See:
http://d.puremagic.com/issues/show_bug.cgi?id=8247

Reply via email to