mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-24 05:52:08 +02:00
fuzz: [refactor] Use PickValue where possible
This commit is contained in:
@@ -49,7 +49,7 @@ void CallOneOf(FuzzedDataProvider& fuzzed_data_provider, Callables... callables)
|
||||
}
|
||||
|
||||
template <typename Collection>
|
||||
const auto& PickValue(FuzzedDataProvider& fuzzed_data_provider, const Collection& col)
|
||||
auto& PickValue(FuzzedDataProvider& fuzzed_data_provider, Collection& col)
|
||||
{
|
||||
const auto sz = col.size();
|
||||
assert(sz >= 1);
|
||||
|
||||
Reference in New Issue
Block a user