Ok, changed to std::minstd_rand.