Skip to content

Commit

Permalink
tests: Fix accidental trunction from int to bool
Browse files Browse the repository at this point in the history
  • Loading branch information
practicalswift committed Aug 28, 2018
1 parent aa39ca7 commit 1cc5897
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/scheduler_tests.cpp
Expand Up @@ -54,7 +54,7 @@ BOOST_AUTO_TEST_CASE(manythreads)

boost::mutex counterMutex[10];
int counter[10] = { 0 };
FastRandomContext rng(42);
FastRandomContext rng{/* fDeterministic */ true};
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 randomDelta = [](FastRandomContext& rc) -> int { return -1000 + (int)rc.randrange(2001); }; // [-1000, 1000]
Expand Down

0 comments on commit 1cc5897

Please sign in to comment.