aboutsummaryrefslogtreecommitdiff
path: root/src/bench/checkqueue.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2017-02-25 12:16:58 -0800
committerPieter Wuille <[email protected]>2017-03-29 11:26:08 -0700
commit4fd2d2fc97e21efceab849576e544160fd5e3e3d (patch)
tree4d36745b0b5a72bf51b2e54bfd13151920a2c57b /src/bench/checkqueue.cpp
parentSwitch FastRandomContext to ChaCha20 (diff)
downloaddiscoin-4fd2d2fc97e21efceab849576e544160fd5e3e3d.tar.xz
discoin-4fd2d2fc97e21efceab849576e544160fd5e3e3d.zip
Add a FastRandomContext::randrange and use it
Diffstat (limited to 'src/bench/checkqueue.cpp')
-rw-r--r--src/bench/checkqueue.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bench/checkqueue.cpp b/src/bench/checkqueue.cpp
index 6fa9fe4fe..88a2a570f 100644
--- a/src/bench/checkqueue.cpp
+++ b/src/bench/checkqueue.cpp
@@ -68,7 +68,7 @@ static void CCheckQueueSpeedPrevectorJob(benchmark::State& state)
PrevectorJob(){
}
PrevectorJob(FastRandomContext& insecure_rand){
- p.resize(insecure_rand.rand32() % (PREVECTOR_SIZE*2));
+ p.resize(insecure_rand.randrange(PREVECTOR_SIZE*2));
}
bool operator()()
{