aboutsummaryrefslogtreecommitdiff
path: root/src/test/addrman_tests.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2018-10-31 13:56:19 -0700
committerPieter Wuille <[email protected]>2018-12-12 14:22:12 -0800
commit9695f31d7544778853aa373f0aeed629fa68d85e (patch)
tree4999c234883bf8127716904b36d2873383151317 /src/test/addrman_tests.cpp
parentMerge #14908: test: Removed implicit CTransaction constructor calls from test... (diff)
downloaddiscoin-9695f31d7544778853aa373f0aeed629fa68d85e.tar.xz
discoin-9695f31d7544778853aa373f0aeed629fa68d85e.zip
Make addrman use its local RNG exclusively
Diffstat (limited to 'src/test/addrman_tests.cpp')
-rw-r--r--src/test/addrman_tests.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/test/addrman_tests.cpp b/src/test/addrman_tests.cpp
index 55fe19ceb..12e6ace21 100644
--- a/src/test/addrman_tests.cpp
+++ b/src/test/addrman_tests.cpp
@@ -32,12 +32,6 @@ public:
insecure_rand = FastRandomContext(true);
}
- int RandomInt(int nMax) override
- {
- state = (CHashWriter(SER_GETHASH, 0) << state).GetCheapHash();
- return (unsigned int)(state % nMax);
- }
-
CAddrInfo* Find(const CNetAddr& addr, int* pnId = nullptr)
{
LOCK(cs);