mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-03-15 04:11:02 +01:00
fuzz: actually test garbage >64b in p2p transport test
This commit is contained in:
parent
015ac13dcc
commit
626f8e398e
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue