Class StringHash

Class Documentation

class StringHash

h( s ) = sum_i s_i x^i mod 2^61 - 1, at a random point x

Public Functions

explicit StringHash(std::uint64_t seed = 1)
std::uint64_t operator()(std::string_view s) const
Post:

the result is below 2^61 - 1