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/Demarc.cpp | |
| parent | 3e49337d9a773a5d805a908bc093b5d72985d8d9 (diff) | |
| download | infinitytier-97cbd98bc5bb99bd1363ba1ae87074afcef926a4.tar.gz infinitytier-97cbd98bc5bb99bd1363ba1ae87074afcef926a4.zip | |
Compile fixes, integration of fast PRNG.
Diffstat (limited to 'node/Demarc.cpp')
| -rw-r--r-- | node/Demarc.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/Demarc.cpp b/node/Demarc.cpp index cf521707..5efe55bc 100644 --- a/node/Demarc.cpp +++ b/node/Demarc.cpp @@ -143,7 +143,7 @@ Demarc::Port Demarc::pick(const InetAddress &to) const } } if (possibilities.size()) - return possibilities[_r->prng.next32() % possibilities.size()]->first; + return possibilities[_r->prng->next32() % possibilities.size()]->first; else return NULL_PORT; } catch ( ... ) { return NULL_PORT; @@ -174,7 +174,7 @@ Demarc::Port Demarc::send(Demarc::Port fromPort,const InetAddress &to,const void } } if (possibilities.size()) - pe = possibilities[_r->prng.next32() % possibilities.size()]; + pe = possibilities[_r->prng->next32() % possibilities.size()]; else { _ports_m.unlock(); return NULL_PORT; |
