aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2023-07-17 03:33:13 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2023-07-17 13:27:46 +0200
commit7d92b1430a6fd42c4438810640576830d0ff8d13 (patch)
tree32be45317bee88287fd0b2fa19af2e3b327395a5 /src/util
parent57b8336dfed6312003cf34cd5ae7099f77115e73 (diff)
downloadbitcoin-7d92b1430a6fd42c4438810640576830d0ff8d13.tar.xz
refactor: use Span for SipHash::Write
Co-authored-by: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/bytevectorhash.cpp2
-rw-r--r--src/util/hasher.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/util/bytevectorhash.cpp b/src/util/bytevectorhash.cpp
index 29be138eeb..92f1dbd5d8 100644
--- a/src/util/bytevectorhash.cpp
+++ b/src/util/bytevectorhash.cpp
@@ -16,5 +16,5 @@ ByteVectorHash::ByteVectorHash() :
size_t ByteVectorHash::operator()(const std::vector<unsigned char>& input) const
{
- return CSipHasher(m_k0, m_k1).Write(input.data(), input.size()).Finalize();
+ return CSipHasher(m_k0, m_k1).Write(input).Finalize();
}
diff --git a/src/util/hasher.cpp b/src/util/hasher.cpp
index 81e9b990e1..f571725786 100644
--- a/src/util/hasher.cpp
+++ b/src/util/hasher.cpp
@@ -18,5 +18,5 @@ SaltedSipHasher::SaltedSipHasher() : m_k0(GetRand<uint64_t>()), m_k1(GetRand<uin
size_t SaltedSipHasher::operator()(const Span<const unsigned char>& script) const
{
- return CSipHasher(m_k0, m_k1).Write(script.data(), script.size()).Finalize();
+ return CSipHasher(m_k0, m_k1).Write(script).Finalize();
}