mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-12 10:30:08 +01:00
fuzz: allow lower number of sources
This commit is contained in:
parent
acf656d540
commit
57ce20307e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue