aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2020-06-18 17:19:46 -0700
committerPieter Wuille <pieter@wuille.net>2020-07-30 13:57:54 -0700
commit02c4cc5c5ddf61f98ee366a4bea8abc26de492bd (patch)
tree71a25d64248ffeac24259ddbe328481e9125020d /src/test/fuzz
parent0ef97b1b103231db54e04a64bbdb5dcc3f34f482 (diff)
Make CHash256/CHash160 output to Span
Diffstat (limited to 'src/test/fuzz')
-rw-r--r--src/test/fuzz/crypto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/fuzz/crypto.cpp b/src/test/fuzz/crypto.cpp
index c25392f036..c789620784 100644
--- a/src/test/fuzz/crypto.cpp
+++ b/src/test/fuzz/crypto.cpp
@@ -73,12 +73,12 @@ void test_one_input(const std::vector<uint8_t>& buffer)
switch (fuzzed_data_provider.ConsumeIntegralInRange<int>(0, 8)) {
case 0: {
data.resize(CHash160::OUTPUT_SIZE);
- hash160.Finalize(data.data());
+ hash160.Finalize(data);
break;
}
case 1: {
data.resize(CHash256::OUTPUT_SIZE);
- hash256.Finalize(data.data());
+ hash256.Finalize(data);
break;
}
case 2: {