https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85439
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> --- I don't think there is a "right" answer, because the precise behaviour of std::uniform_int_distribution is unspecified. The mersenne twister RBGs must give portable results across implementations, but the distributions don't have to.