Skip to content

Commit 13887f4

Browse files
author
MarcoFalke
committed
Merge #14093: tests: Fix accidental trunction from int to bool
1cc5897 tests: Fix accidental trunction from int to bool (practicalswift) Pull request description: Fix accidental trunction from `int` to `bool`. Context: bitcoin/bitcoin#14086 (comment) Tree-SHA512: 72d209f892e580afa9c295174c206ea5ba764ff9e03613cd9bc57fd0d7118e895ee44d96db90930a29c0b4de7f51dc00101a1b32ba6b46576d34e089ff5482ba
2 parents 5de338e + 1cc5897 commit 13887f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/scheduler_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ BOOST_AUTO_TEST_CASE(manythreads)
5454

5555
boost::mutex counterMutex[10];
5656
int counter[10] = { 0 };
57-
FastRandomContext rng(42);
57+
FastRandomContext rng{/* fDeterministic */ true};
5858
auto zeroToNine = [](FastRandomContext& rc) -> int { return rc.randrange(10); }; // [0, 9]
5959
auto randomMsec = [](FastRandomContext& rc) -> int { return -11 + (int)rc.randrange(1012); }; // [-11, 1000]
6060
auto randomDelta = [](FastRandomContext& rc) -> int { return -1000 + (int)rc.randrange(2001); }; // [-1000, 1000]

0 commit comments

Comments
 (0)