mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-24 22:45:41 +01:00
refactor: use Span for SipHash::Write
Co-authored-by: MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>
This commit is contained in:
@@ -27,7 +27,7 @@ static const std::map<BlockFilterType, std::string> g_filter_types = {
|
||||
uint64_t GCSFilter::HashToRange(const Element& element) const
|
||||
{
|
||||
uint64_t hash = CSipHasher(m_params.m_siphash_k0, m_params.m_siphash_k1)
|
||||
.Write(element.data(), element.size())
|
||||
.Write(element)
|
||||
.Finalize();
|
||||
return FastRange64(hash, m_F);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user