diff options
| author | MarcoFalke <[email protected]> | 2019-11-07 10:18:29 -0500 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2019-11-07 10:18:40 -0500 |
| commit | 772673dfbe703a383ea05a3960a98a702288d2c6 (patch) | |
| tree | 63a544542fc35dd4a3c99a05b1ddf4834f299d2c /src/test/coins_tests.cpp | |
| parent | Merge #17342: refactor: Clean up nScriptCheckThreads (diff) | |
| parent | test: Seed test RNG context for each test case, print seed (diff) | |
| download | discoin-772673dfbe703a383ea05a3960a98a702288d2c6.tar.xz discoin-772673dfbe703a383ea05a3960a98a702288d2c6.zip | |
Merge #16978: test: Seed test RNG context for each test case, print seed
fae43a97ca947cd0802392e9bb86d9d0572c0fba test: Seed test RNG context for each test case, print seed (MarcoFalke)
Pull request description:
Debugging failing unit tests is hard if the failure is non-deterministic and the seed is not known.
Fix that by printing the seed and making it possible to set the seed from outside.
ACKs for top commit:
davereikher:
Tested ACK fae43a97ca947cd0802392e9bb86d9d0572c0fba
Tree-SHA512: 33d848dd1f4180d3664ecf60e9810c2a93590c05276b2c46b1e4fe6e376b45916a46b90c803bb602750ab666da3a05ce499e550024685a90b8cc38fab6667cb8
Diffstat (limited to 'src/test/coins_tests.cpp')
| -rw-r--r-- | src/test/coins_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp index 7ad276df9..436c1bffa 100644 --- a/src/test/coins_tests.cpp +++ b/src/test/coins_tests.cpp @@ -279,7 +279,7 @@ UtxoData::iterator FindRandomFrom(const std::set<COutPoint> &utxoSet) { // has the expected effect (the other duplicate is overwritten at all cache levels) BOOST_AUTO_TEST_CASE(updatecoins_simulation_test) { - SeedInsecureRand(/* deterministic */ true); + SeedInsecureRand(SeedRand::ZEROS); g_mock_deterministic_tests = true; bool spent_a_duplicate_coinbase = false; |