mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
[fuzz] Update comment in FillAddrman()
Suggested here: https://github.com/bitcoin/bitcoin/pull/22974#discussion_r711119626
This commit is contained in:
parent
640476eb0e
commit
44452110f0
1 changed files with 1 additions and 2 deletions
|
@ -77,8 +77,7 @@ CNetAddr RandAddr(FuzzedDataProvider& fuzzed_data_provider, FastRandomContext& f
|
|||
/** Fill addrman with lots of addresses from lots of sources. */
|
||||
void FillAddrman(AddrMan& addrman, FuzzedDataProvider& fuzzed_data_provider)
|
||||
{
|
||||
// Add some of the addresses directly to the "tried" table.
|
||||
|
||||
// Add a fraction of the addresses to the "tried" table.
|
||||
// 0, 1, 2, 3 corresponding to 0%, 100%, 50%, 33%
|
||||
const size_t n = fuzzed_data_provider.ConsumeIntegralInRange<size_t>(0, 3);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue