What is the use case of RandomCover?

Joseph Rushton Wakeling joseph.wakeling at webdrake.net
Tue Feb 19 04:27:26 PST 2013


On 02/19/2013 12:27 PM, monarch_dodra wrote:
> Last but not least, be warned there is an old-standing bug with anything in
> phobos that takes a PRNG by value. Basically, the PRNG will be duplicated, and
> generate the same sequence over and over. Ergo, do NOT pass a specific random
> generator to things like randomSample or randomSuffle.

Sorry, I missed your remark on this when writing my own email.  But I'm not sure 
this issue can be over-emphasized ... :-)



More information about the Digitalmars-d-learn mailing list