make random number generator thread safe

This commit is contained in:
Arthur Passos 2023-01-27 12:14:07 -03:00
parent e559a6b1d2
commit 39cbf4d4dc

View File

@ -17,11 +17,11 @@ TEST(Common, ReverseDNS)
"127.0.0.1", "::1"
});
auto func = [&]()
{
// Good random seed, good engine
auto rnd1 = std::mt19937(std::random_device{}());
auto func = [&]()
{
for (int i = 0; i < 50; ++i)
{
auto & dns_resolver_instance = DNSResolver::instance();