summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/Reference.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/Reference.cpp')
-rw-r--r--cpp/src/Ice/Reference.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpp/src/Ice/Reference.cpp b/cpp/src/Ice/Reference.cpp
index 784d6e5ba2f..9d6cfd9d1a5 100644
--- a/cpp/src/Ice/Reference.cpp
+++ b/cpp/src/Ice/Reference.cpp
@@ -25,6 +25,7 @@
#include <Ice/TraceLevels.h>
#include <Ice/DefaultsAndOverrides.h>
#include <IceUtil/StringUtil.h>
+#include <IceUtil/Random.h>
using namespace std;
using namespace Ice;
@@ -635,7 +636,7 @@ IceInternal::FixedReference::filterConnections(const vector<ConnectionIPtr>& all
//
// Randomize the order of connections.
//
- random_shuffle(connections.begin(), connections.end());
+ random_shuffle(connections.begin(), connections.end(), IceUtil::random);
//
// If a secure connection is requested, remove all non-secure
@@ -931,7 +932,7 @@ IceInternal::RoutableReference::createConnection(const vector<EndpointIPtr>& all
{
case Random:
{
- random_shuffle(endpoints.begin(), endpoints.end());
+ random_shuffle(endpoints.begin(), endpoints.end(), IceUtil::random);
break;
}
case Ordered: