Commit 96f0f7c0 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Improve RNG seeding

parent cd4cef2b
......@@ -19,5 +19,6 @@
rng_t get_rng(size_t seed)
{
return rng_t(static_cast<rng_t::result_type>(seed));
std::seed_seq seq{seed, seed + 1, seed + 2, seed + 3, seed + 4};
return rng_t(seq);
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment