mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
make random number generator thread safe
This commit is contained in:
parent
e559a6b1d2
commit
39cbf4d4dc
@ -17,11 +17,11 @@ TEST(Common, ReverseDNS)
|
||||
"127.0.0.1", "::1"
|
||||
});
|
||||
|
||||
// Good random seed, good engine
|
||||
auto rnd1 = std::mt19937(std::random_device{}());
|
||||
|
||||
auto func = [&]()
|
||||
{
|
||||
// Good random seed, good engine
|
||||
auto rnd1 = std::mt19937(std::random_device{}());
|
||||
|
||||
for (int i = 0; i < 50; ++i)
|
||||
{
|
||||
auto & dns_resolver_instance = DNSResolver::instance();
|
||||
|
Loading…
Reference in New Issue
Block a user