As discussed on D34089, this patch replaces the existing custom Random class with the C++ mersenne_twister_engine instead, which should maintain equivalent values on different targets.
llvm-stress is still driven by an input seed, but the change in randomizer will mean that the fuzz test codegen won't match previous results.
Can you use the llvm::RandomNumberGenerator wrapper instead? That prevents accidentally copying it.