[Issue 17068] Range-based seeding of MersenneTwisterEngine is inconsistent with C++11
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Jan 7 14:26:29 PST 2017
https://issues.dlang.org/show_bug.cgi?id=17068
--- Comment #2 from Joseph Rushton Wakeling <joseph.wakeling at webdrake.net> ---
I've attached small code snippets to show the difference between the D and
C++11 behaviour.
Running these on my machine the D code outputs (apart from the seed data) 1st
and 10,000th variates of:
596004846
703773746
while the C++11 code outputs 1st and 10,000th variates of:
719125747
99701347
--
More information about the Digitalmars-d-bugs
mailing list