From ef0b01217a556150e98a029adbc8b8062ca204fe Mon Sep 17 00:00:00 2001 From: practicalswift Date: Sat, 2 Feb 2019 19:31:37 +0100 Subject: tests: Make updatecoins_simulation_test deterministic --- src/test/coins_tests.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/test/coins_tests.cpp b/src/test/coins_tests.cpp index aa2e88477d..f6b97a6868 100644 --- a/src/test/coins_tests.cpp +++ b/src/test/coins_tests.cpp @@ -279,6 +279,8 @@ UtxoData::iterator FindRandomFrom(const std::set &utxoSet) { // has the expected effect (the other duplicate is overwritten at all cache levels) BOOST_AUTO_TEST_CASE(updatecoins_simulation_test) { + SeedInsecureRand(/* deterministic */ true); + bool spent_a_duplicate_coinbase = false; // A simple map to track what we expect the cache stack to represent. std::map result; -- cgit v1.2.3