aboutsummaryrefslogtreecommitdiff
path: root/src/test/coins_tests.cpp
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2019-02-02 19:31:37 +0100
committerpracticalswift <practicalswift@users.noreply.github.com>2019-02-03 10:34:22 +0100
commitef0b01217a556150e98a029adbc8b8062ca204fe (patch)
tree5ff7983fa0d9f4a2ffb1555c13dc02765064cc7d /src/test/coins_tests.cpp
parentb3a715301a0fd972fb2f3bd36e2680b3cdbbab26 (diff)
downloadbitcoin-ef0b01217a556150e98a029adbc8b8062ca204fe.tar.xz
tests: Make updatecoins_simulation_test deterministic
Diffstat (limited to 'src/test/coins_tests.cpp')
-rw-r--r--src/test/coins_tests.cpp2
1 files changed, 2 insertions, 0 deletions
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<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);
+
bool spent_a_duplicate_coinbase = false;
// A simple map to track what we expect the cache stack to represent.
std::map<COutPoint, Coin> result;