13 k0(deterministic ? 0x8e819f2607a18de6 :
GetRand<uint64_t>()),
14 k1(deterministic ? 0xf4020d2e3983b0eb :
GetRand<uint64_t>())
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 It is treated as if this was the little-endian interpretation of ...
SaltedOutpointHasher(bool deterministic=false)
size_t operator()(const Span< const unsigned char > &script) const
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...