Different random shuffles generated when compiled with gdc than with dmd

Kagamin via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 2 05:14:37 PDT 2014


On Sunday, 1 June 2014 at 12:11:22 UTC, Ivan Kazmenko wrote:
> I second the thought that reproducibility across different 
> versions is an important feature of any random generation 
> library.  Sadly, I didn't use a language yet which supported 
> such a flavor of reproducibility for a significant period of 
> time in its default random library, so I have to use my own 
> randomness routines when it matters.

It can be done by using standardized algorithms like one in FIPS 
186-2. Because it's standardized, it can't be improved.


More information about the Digitalmars-d-learn mailing list