14 : k0(deterministic ? 0x8e819f2607a18de6 :
GetRand<uint64_t>()),
15 k1(deterministic ? 0xf4020d2e3983b0eb :
GetRand<uint64_t>()) {}
static const uint8_t k1[32]
uint64_t Finalize() const
Compute the 64-bit SipHash-2-4 of the data written so far.
CSipHasher & Write(uint64_t data)
Hash a 64-bit integer worth of data.
SaltedOutpointHasher(bool deterministic=false)
size_t operator()(const Span< const uint8_t > &script) const
constexpr std::size_t size() const noexcept
constexpr C * data() const noexcept
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...