Lines Matching refs:seed
27 // Default seed which is used in hash functions.
28 // NOTE: To create different seed for your purposes,
32 // Hash class alias with the default seed inside.
36 * \brief Create 32 bits Hash from \param key via \param seed.
39 * @param seed - seed which is used to calculate hash
42 inline uint32_t GetHash32WithSeed(const uint8_t *key, size_t len, uint32_t seed)
44 return Hash::GetHash32WithSeed(key, len, seed);
71 * @param seed - seed which is used to calculate hash
74 inline uint32_t GetHash32StringWithSeed(const uint8_t *mutf8_string, uint32_t seed)
76 return Hash::GetHash32StringWithSeed(mutf8_string, seed);
83 uint32_t PseudoFnvHashItem(Item item, uint32_t seed = FNV_INITIAL_SEED)
88 return (seed ^ static_cast<uint32_t>(item)) * PRIME;
91 uint32_t hash = PseudoFnvHashItem(static_cast<uint32_t>(item1), seed);