mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-23 02:22:32 +02:00
tests: Fix accidental trunction from int to bool
This commit is contained in:
parent
aa39ca7645
commit
1cc58978b7
@ -54,7 +54,7 @@ BOOST_AUTO_TEST_CASE(manythreads)
|
|||||||
|
|
||||||
boost::mutex counterMutex[10];
|
boost::mutex counterMutex[10];
|
||||||
int counter[10] = { 0 };
|
int counter[10] = { 0 };
|
||||||
FastRandomContext rng(42);
|
FastRandomContext rng{/* fDeterministic */ true};
|
||||||
auto zeroToNine = [](FastRandomContext& rc) -> int { return rc.randrange(10); }; // [0, 9]
|
auto zeroToNine = [](FastRandomContext& rc) -> int { return rc.randrange(10); }; // [0, 9]
|
||||||
auto randomMsec = [](FastRandomContext& rc) -> int { return -11 + (int)rc.randrange(1012); }; // [-11, 1000]
|
auto randomMsec = [](FastRandomContext& rc) -> int { return -11 + (int)rc.randrange(1012); }; // [-11, 1000]
|
||||||
auto randomDelta = [](FastRandomContext& rc) -> int { return -1000 + (int)rc.randrange(2001); }; // [-1000, 1000]
|
auto randomDelta = [](FastRandomContext& rc) -> int { return -1000 + (int)rc.randrange(2001); }; // [-1000, 1000]
|
||||||
|
Loading…
Reference in New Issue
Block a user