[Bug libstdc++/85439] mt19937_64 producing unexpected result only in certain configuration
foddex at foddex dot net
gcc-bugzilla@gcc.gnu.org
Thu Apr 19 07:29:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85439
--- Comment #4 from Marc "Foddex" Oude Kotte <foddex at foddex dot net> ---
The reason I was expecting the same result everywhere is because of this
statement on cppreference.com:
"Notes
The 10000th consecutive invocation of a default-contructed std::mt19937 is
required to produce the value 4123659995.
The 10000th consecutive invocation of a default-contructed std::mt19937_64 is
required to produce the value 9981545732273789042"
Source: http://en.cppreference.com/w/cpp/numeric/random/mersenne_twister_engine
Obviously I'm not testing the 10000th consecutive invocation but the 1st, but I
still expected things to be similar (and they are, in 7/8 test cases).
More information about the Gcc-bugs
mailing list