From 4f2e36ca46538e18bf846765997707bde91b1357 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 19 Sep 2013 08:57:34 +0100 Subject: [PATCH] rand(), not random(), for Windows. --- simgear/io/HTTPClient.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.5