Different random shuffles generated when compiled with gdc than with dmd

Andrew Brown via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat May 31 11:16:37 PDT 2014


Looking at old data, it is the dmd version that's changed, so I 
think this is the likely reason.

Andrew

On Friday, 30 May 2014 at 20:45:23 UTC, monarch_dodra wrote:
> 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