From 97cbd98bc5bb99bd1363ba1ae87074afcef926a4 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Sat, 13 Jul 2013 14:28:26 -0400 Subject: Compile fixes, integration of fast PRNG. --- node/Http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'node/Http.cpp') 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::iterator a(addrList->begin()); while (i++ != k) ++a; addr = &(*a); -- cgit v1.2.3