4 ms·
std::random_device rd; std::mt19937 rng(rd()); //Construct with random seed. uint32_t random_number = dist(rng); Since only the seed value comes from
by en4bz 13y ago
std::random_device rd;
std::mt19937 rng(rd()); //Construct with random seed.
uint32_t random_number = dist(rng);
Since only the seed value comes from `rd` you should be fine if you suspected the results from the article would affect you. What was most likely happening in the article was constant use of `rd` without a prng.