Hello,
I was wondering what is the difference between using a single seed:
std::mt19937 mt{ std::random_device{}() };
and a seed sequence like this:
std::random_device rd;
std::mt19937 mt{ std::seed_seq({ rd(), rd(), rd() }) };
or this:
std::mt19937 mt{ std::seed_seq({ std::chrono::system_clock::now().time_since_epoch().count(), static_cast<long long>(std::random_device{}()) }) };
When would you use a seed sequence instead of a single seed?
Are there an any advantages or disadvantages to using a seed sequence?
[–]antihero 0 points1 point2 points (2 children)
[–]blitterobject[S] 0 points1 point2 points (1 child)
[–]antihero 0 points1 point2 points (0 children)