fuzz: actually test garbage >64b in p2p transport test
This commit is contained in:
1 parent
015ac13dcc
commit
626f8e398e
1 file changed
+1
@@ -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