Skip to content

Commit 1cc5897

Browse files
tests: Fix accidental trunction from int to bool
1 parent aa39ca7 commit 1cc5897

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)