summaryrefslogtreecommitdiff
path: root/node/Http.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2013-07-13 13:26:27 -0400
committerAdam Ierymenko <adam.ierymenko@gmail.com>2013-07-13 13:26:27 -0400
commit3e49337d9a773a5d805a908bc093b5d72985d8d9 (patch)
treedd8bf524287442c1c3a30f9390d712b77c0e53d0 /node/Http.cpp
parentc6dd5b239ff30a192c5bc6e784fd5d4b3085646d (diff)
downloadinfinitytier-3e49337d9a773a5d805a908bc093b5d72985d8d9.tar.gz
infinitytier-3e49337d9a773a5d805a908bc093b5d72985d8d9.zip
Add a fast non-cryptographic PRNG.
Diffstat (limited to 'node/Http.cpp')
-rw-r--r--node/Http.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Http.cpp b/node/Http.cpp
index 6a79a974..07ada6dc 100644
--- a/node/Http.cpp
+++ b/node/Http.cpp
@@ -173,7 +173,7 @@ void Http::Request::main()
addrList->sort();
addrList->unique();
unsigned int i = 0,k = 0;
- k = Utils::randomInt<unsigned int>() % addrList->size();
+ k = _r->prng.next32() % addrList->size();
std::list<InetAddress>::iterator a(addrList->begin());
while (i++ != k) ++a;
addr = &(*a);