diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-13 14:28:26 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-07-13 14:28:26 -0400 |
| commit | 97cbd98bc5bb99bd1363ba1ae87074afcef926a4 (patch) | |
| tree | 47471b826ca4880f831c200f614e5c87f6ee8c1e /node/Http.cpp | |
| parent | 3e49337d9a773a5d805a908bc093b5d72985d8d9 (diff) | |
| download | infinitytier-97cbd98bc5bb99bd1363ba1ae87074afcef926a4.tar.gz infinitytier-97cbd98bc5bb99bd1363ba1ae87074afcef926a4.zip | |
Compile fixes, integration of fast PRNG.
Diffstat (limited to 'node/Http.cpp')
| -rw-r--r-- | node/Http.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Http.cpp b/node/Http.cpp index 07ada6dc..86ae2d25 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 = _r->prng.next32() % addrList->size(); + k = rand() % addrList->size(); std::list<InetAddress>::iterator a(addrList->begin()); while (i++ != k) ++a; addr = &(*a); |
