From: James Turner Date: Thu, 19 Sep 2013 07:57:34 +0000 (+0100) Subject: rand(), not random(), for Windows. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4f2e36ca46538e18bf846765997707bde91b1357;p=simgear.git rand(), not random(), for Windows. --- diff --git a/simgear/io/HTTPClient.cxx b/simgear/io/HTTPClient.cxx index 037b1283..0630af32 100644 --- a/simgear/io/HTTPClient.cxx +++ b/simgear/io/HTTPClient.cxx @@ -25,6 +25,7 @@ #include #include +#include // rand() #include #include #include @@ -840,7 +841,7 @@ void Client::makeRequest(const Request_ptr& r) // we have at least one connection to the host, but they are // all active - we need to pick one to queue the request on. // we use random but round-robin would also work. - int index = random() % count; + int index = rand() % count; for (it = d->connections.find(connectionId); index > 0; --index) { ; } con = it->second; }