fuzz: actually test garbage >64b in p2p transport test

This commit is contained in:
Pieter Wuille 2024-03-17 11:35:01 -04:00
parent 015ac13dcc
commit 626f8e398e

View file

@ -354,6 +354,7 @@ std::unique_ptr<Transport> MakeV2Transport(NodeId nodeid, bool initiator, RNG& r
} else {
// If it's longer, generate it from the RNG. This avoids having large amounts of
// (hopefully) irrelevant data needing to be stored in the fuzzer data.
garb.resize(garb_len);
for (auto& v : garb) v = uint8_t(rng());
}
// Retrieve entropy