From 57ce20307e604530f78ef4f0f8d9fb94f80ca81b Mon Sep 17 00:00:00 2001 From: Martin Zumsande Date: Thu, 16 Sep 2021 00:16:56 +0200 Subject: [PATCH] fuzz: allow lower number of sources --- src/test/fuzz/addrman.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/fuzz/addrman.cpp b/src/test/fuzz/addrman.cpp index 1781420f4ff..95c5a99c1b0 100644 --- a/src/test/fuzz/addrman.cpp +++ b/src/test/fuzz/addrman.cpp @@ -85,7 +85,7 @@ public: // 0, 1, 2, 3 corresponding to 0%, 100%, 50%, 33% const size_t n = m_fuzzed_data_provider.ConsumeIntegralInRange(0, 3); - const size_t num_sources = m_fuzzed_data_provider.ConsumeIntegralInRange(10, 50); + const size_t num_sources = m_fuzzed_data_provider.ConsumeIntegralInRange(1, 50); CNetAddr prev_source; // Use insecure_rand inside the loops instead of m_fuzzed_data_provider because when // the latter is exhausted it just returns 0.