mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-19 09:53:47 +01:00
fuzz: allow lower number of sources
This commit is contained in:
parent
acf656d540
commit
57ce20307e
@ -85,7 +85,7 @@ public:
|
|||||||
// 0, 1, 2, 3 corresponding to 0%, 100%, 50%, 33%
|
// 0, 1, 2, 3 corresponding to 0%, 100%, 50%, 33%
|
||||||
const size_t n = m_fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, 3);
|
const size_t n = m_fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, 3);
|
||||||
|
|
||||||
const size_t num_sources = m_fuzzed_data_provider.ConsumeIntegralInRange<size_t>(10, 50);
|
const size_t num_sources = m_fuzzed_data_provider.ConsumeIntegralInRange<size_t>(1, 50);
|
||||||
CNetAddr prev_source;
|
CNetAddr prev_source;
|
||||||
// Use insecure_rand inside the loops instead of m_fuzzed_data_provider because when
|
// Use insecure_rand inside the loops instead of m_fuzzed_data_provider because when
|
||||||
// the latter is exhausted it just returns 0.
|
// the latter is exhausted it just returns 0.
|
||||||
|
Loading…
Reference in New Issue
Block a user