mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-10-09 19:13:28 +02:00
fuzz: actually test garbage >64b in p2p transport test
This commit is contained in:
@@ -354,6 +354,7 @@ std::unique_ptr<Transport> MakeV2Transport(NodeId nodeid, bool initiator, RNG& r
|
|||||||
} else {
|
} else {
|
||||||
// If it's longer, generate it from the RNG. This avoids having large amounts of
|
// 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.
|
// (hopefully) irrelevant data needing to be stored in the fuzzer data.
|
||||||
|
garb.resize(garb_len);
|
||||||
for (auto& v : garb) v = uint8_t(rng());
|
for (auto& v : garb) v = uint8_t(rng());
|
||||||
}
|
}
|
||||||
// Retrieve entropy
|
// Retrieve entropy
|
||||||
|
Reference in New Issue
Block a user