[Bug libstdc++/124256] Random number generator generates different numbers for the same seed, compared to all previous GCC versions
carlosgalvezp at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu Feb 26 13:36:29 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124256
--- Comment #1 from Carlos Galvez <carlosgalvezp at gmail dot com> ---
Possibly this commit is the culprit:
https://github.com/gcc-mirror/gcc/commit/866bc8a9214b1d00402fdbdcb976688a95c98f65
Adding -D_GLIBCXX_USE_OLD_GENERATE_CANONICAL reverts the previous behavior.
More information about the Gcc-bugs
mailing list