mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +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"
|
||||
});
|
||||
|
||||
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();
|
||||
|
Loading…
Reference in New Issue
Block a user