| 33 | namespace hash_util { |
| 34 | |
| 35 | uint32_t VuidHash(std::string_view vuid) { |
| 36 | // While the XXH32 is known to be slower, unfortunately people are likely relying on the |
| 37 | // exact hashes being returned, so we need to keep this stable. |
| 38 | constexpr uint32_t seed = 8; |
| 39 | return XXH32(vuid.data(), vuid.size(), seed); |
| 40 | } |
| 41 | |
| 42 | uint32_t Hash32(const void* info, const size_t info_size) { |
| 43 | // Documentation shows XXH32 is a legacy function and XXH3_64bits is much faster |
no test coverage detected