fuzz: Add missing SeedRandomStateForTest(SeedRand::ZEROS)

This commit is contained in:
MarcoFalke committed 2024-12-13 14:22:25 +01:00
1 parent 78f1bff709
commit fa7809aeab
31 files changed
+48 -3

No files matched your search

+1
View File
@@ -218,6 +218,7 @@ FUZZ_TARGET(coin_grinder_is_optimal)
FUZZ_TARGET(coinselection)
{
SeedRandomStateForTest(SeedRand::ZEROS);
FuzzedDataProvider fuzzed_data_provider{buffer.data(), buffer.size()};
std::vector<COutput> utxo_pool;
+1
View File
@@ -56,6 +56,7 @@ void initialize_setup()
FUZZ_TARGET(wallet_notifications, .init = initialize_setup)
{
SeedRandomStateForTest(SeedRand::ZEROS);
FuzzedDataProvider fuzzed_data_provider{buffer.data(), buffer.size()};
// The total amount, to be distributed to the wallets a and b in txs
// without fee. Thus, the balance of the wallets should always equal the
+1
View File
@@ -85,6 +85,7 @@ static DescriptorScriptPubKeyMan* CreateDescriptor(WalletDescriptor& wallet_desc
FUZZ_TARGET(scriptpubkeyman, .init = initialize_spkm)
{
SeedRandomStateForTest(SeedRand::ZEROS);
FuzzedDataProvider fuzzed_data_provider{buffer.data(), buffer.size()};
const auto& node{g_setup->m_node};
Chainstate& chainstate{node.chainman->ActiveChainstate()};