src/probabilistic/Hasher.cc
Hasher::digest UHF::hash(const void* x, size_t n) const
	{
	static_assert(std::is_same<highwayhash::SipHashState::Key, decltype(seed.h)>::value,
	              "Seed value is not the same type as highwayhash key");
	return highwayhash::SipHash(seed.h, reinterpret_cast<const char*>(x), n);
	}
// This function is almost equivalent to HashKey::HashBytes except that it
// does not depend on global state and that we mix in the seed multiple
// times.
This function is almost equivalent to HashKey::HashBytes except that it
does not depend on global state and that we mix in the seed multiple
times.
This function is almost equivalent to HashKey :: HashBytes except that it does not depend on global state and that we mix in the seed multiple times .
Hasher::digest UHF::hash(const void* x, size_t n) const
	{
	static_assert(std::is_same<highwayhash::SipHashState::Key, decltype(seed.h)>::value,
	              "Seed value is not the same type as highwayhash key");
	return highwayhash::SipHash(seed.h, reinterpret_cast<const char*>(x), n);
	}
Hasher :: digest UHF :: hash ( const void * x , size_t n ) const { static_assert ( std :: is_same < highwayhash :: SipHashState :: Key , decltype ( seed . h ) > :: value , " " ) ; return highwayhash :: SipHash ( seed . h , reinterpret_cast < const char * > ( x ) , n ) ; }
This function is almost equivalent to HashKey::HashBytes except that it
does not depend on global state and that we mix in the seed multiple
times.
This function is almost equivalent to HashKey :: HashBytes except that it does not depend on global state and that we mix in the seed multiple times .