mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Add a FastRandomContext::randrange and use it
This commit is contained in:
parent
16329224e7
commit
4fd2d2fc97
7 changed files with 75 additions and 2 deletions
|
|
@ -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()()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue