carb::hashCombine

Defined in carb/Defines.h

inline constexpr uint64_t carb::hashCombine(uint64_t hash1, uint64_t hash2) noexcept

Combines two hashes producing better collision avoidance than XOR.

Parameters
  • hash1 – The initial hash

  • hash2 – The hash to combine with hash1

Returns

A combined hash of hash1 and hash2