diff options
| author | MarcoFalke <[email protected]> | 2018-08-28 22:15:45 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2018-08-28 22:15:49 -0400 |
| commit | 13887f41f22909e5c42cd132da02173d911e8285 (patch) | |
| tree | e3a1ec19df31faa1d9e2321af0898647ed2a780e | |
| parent | Merge #14055: fix walletcreatefundedpsbt deriv paths, add test (diff) | |
| parent | tests: Fix accidental trunction from int to bool (diff) | |
| download | discoin-13887f41f22909e5c42cd132da02173d911e8285.tar.xz discoin-13887f41f22909e5c42cd132da02173d911e8285.zip | |
Merge #14093: tests: Fix accidental trunction from int to bool
1cc58978b7 tests: Fix accidental trunction from int to bool (practicalswift)
Pull request description:
Fix accidental trunction from `int` to `bool`.
Context: https://github.com/bitcoin/bitcoin/pull/14086#issuecomment-416610313
Tree-SHA512: 72d209f892e580afa9c295174c206ea5ba764ff9e03613cd9bc57fd0d7118e895ee44d96db90930a29c0b4de7f51dc00101a1b32ba6b46576d34e089ff5482ba
| -rw-r--r-- | src/test/scheduler_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/scheduler_tests.cpp b/src/test/scheduler_tests.cpp index 2af0ab22d..814459c2b 100644 --- a/src/test/scheduler_tests.cpp +++ b/src/test/scheduler_tests.cpp @@ -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] |