diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2023-07-17 03:33:13 +0200 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2023-07-17 13:27:46 +0200 |
commit | 7d92b1430a6fd42c4438810640576830d0ff8d13 (patch) | |
tree | 32be45317bee88287fd0b2fa19af2e3b327395a5 /src/util/hasher.cpp | |
parent | 57b8336dfed6312003cf34cd5ae7099f77115e73 (diff) | |
download | bitcoin-7d92b1430a6fd42c4438810640576830d0ff8d13.tar.xz |
refactor: use Span for SipHash::Write
Co-authored-by: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>
Diffstat (limited to 'src/util/hasher.cpp')
-rw-r--r-- | src/util/hasher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |