0
0
Fork 0
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:
John Newbery 2021-09-21 11:01:02 +01:00
parent 640476eb0e
commit 44452110f0

View file

@ -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);