Thread overview
[Issue 17068] Range-based seeding of MersenneTwisterEngine is inconsistent with C++11
Dec 17, 2022
Iain Buclaw
January 07, 2017
https://issues.dlang.org/show_bug.cgi?id=17068

--- Comment #1 from Joseph Rushton Wakeling <joseph.wakeling@webdrake.net> ---
Created attachment 1632
  --> https://issues.dlang.org/attachment.cgi?id=1632&action=edit
Small example of sequence-based seeding of C++11 Mersenne Twister

Compile with the `-std=c++11` option.

--
January 07, 2017
https://issues.dlang.org/show_bug.cgi?id=17068

--- Comment #2 from Joseph Rushton Wakeling <joseph.wakeling@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

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=17068

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 01
https://issues.dlang.org/show_bug.cgi?id=17068

--- Comment #3 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/phobos/issues/10230

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--