https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124256
W E Brown <webrown.cpp at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |webrown.cpp at gmail dot com
--- Comment #2 from W E Brown <webrown.cpp at gmail dot com> ---
Short answer to "Is that expected?":
Sorry, but yes, it is expected.
Longer answer:
Recent C++ standards do not specify any random number *generators*; they
specify several random number *engines* and, separately, several random number
*distributions*. It seems that this issue is about the latter, and this is an
important distinction.
Since C++11, each standard random number *engine* is guaranteed to provide
bit-for-bit reproducible behavior; however, there has never been any such
guarantee for any standard random number *distribution*. Thus there can be no
"golden ground truth" when any standard distribution is involved, as
implementers have always been free to improve any standard distribution's
algorithm at any time.
So, again, sorry, but unless GCC wants to give a stronger reproducibility
guarantee than the standard specifies, there seems no bug here to be fixed.