From f975f480b486ab498626abae3e42a7df12ba4074 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 12 Apr 2016 17:46:47 -0700 Subject: [PATCH] use the random device for random number generation --- domain-server/src/DomainServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/domain-server/src/DomainServer.cpp b/domain-server/src/DomainServer.cpp index 40f0550568..327afdf292 100644 --- a/domain-server/src/DomainServer.cpp +++ b/domain-server/src/DomainServer.cpp @@ -2113,7 +2113,7 @@ void DomainServer::randomizeICEServerAddress() { int maxIndex = candidateICEAddresses.size(); static std::random_device randomDevice; - static std::mt19937 generator; + static std::mt19937 generator(randomDevice()); std::uniform_int_distribution<> distribution(0, maxIndex); auto indexToTry = distribution(generator);