use the random device for random number generation

This commit is contained in:
Stephen Birarda 2016-04-12 17:46:47 -07:00
parent b5fe6120aa
commit f975f480b4

View file

@ -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);