fuzz: [refactor] Use PickValue where possible

This commit is contained in:
MarcoFalke 2021-03-24 07:01:35 +01:00
parent 681c21be9a
commit fa818ca202
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
3 changed files with 6 additions and 6 deletions

View file

@ -65,7 +65,7 @@ FUZZ_TARGET_INIT(process_messages, initialize_process_messages)
net_msg.m_type = random_message_type;
net_msg.data = ConsumeRandomLengthByteVector(fuzzed_data_provider);
CNode& random_node = *peers.at(fuzzed_data_provider.ConsumeIntegralInRange<int>(0, peers.size() - 1));
CNode& random_node = *PickValue(fuzzed_data_provider, peers);
(void)connman.ReceiveMsgFrom(random_node, net_msg);
random_node.fPauseSend = false;