Different random shuffles generated when compiled with gdc than with dmd

monarch_dodra via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri May 30 13:45:21 PDT 2014


On Friday, 30 May 2014 at 18:41:55 UTC, Joseph Rushton Wakeling 
via Digitalmars-d-learn wrote:
> On 30/05/14 18:13, monarch_dodra via Digitalmars-d-learn wrote:
>> Are you sure you are compiling with the same version of dmd 
>> and gdc? Fixes were
>> made to the rand.d library in the latest release, which could 
>> explain the
>> difference you are observing.
>
> Which fixes are you thinking of here ... ?  I don't recall 
> anything that ought to alter the behaviour of the standard 
> random number generator.

Didn't you make changes to how and when the global PRNG is popped 
and accessed in randomShuffle? I figured it *could* be an 
explanation.


More information about the Digitalmars-d-learn mailing list