Replace MersenneTwisterRNG with XORShiftRNG, close #2398