I am generating a sequence of random numbers with std :: mt19937_64. I noticed that when you run GCC and Clang on the same platform with the same seed, I get a different sequence. I ran the program through Valgrind and could not find uninitialized memory.
Is there any guarantee of reproducibility between compilers or on different platforms using std :: mt19937_64?
Edit: Run with std :: normal_distribution
c ++ random c ++ - standard-library
Christopher johnson
source share