3 ms·
My anecdote with C++'s RNGS: I was getting different sequences of random values using std::minstd_rand on arm64 and arm32. Turns out it was because the seed t
by Jyaif 6y ago
My anecdote with C++'s RNGS:
I was getting different sequences of random values using
std::minstd_rand on arm64 and arm32.
Turns out it was because the seed type is uint_fast32_t and I was passing a 64 bit seed.
On arm32 the seed was getting truncated to 32 bits, but not on arm64. It was my fault but it was still surprising.