Compute the hash for a key using the FxHash algorithm.
(key: &[u8])
| 43 | |
| 44 | /// Compute the hash for a key using the FxHash algorithm. |
| 45 | pub(super) fn hash_key(key: &[u8]) -> u64 { |
| 46 | let hasher_builder = FxBuildHasher; |
| 47 | let mut h = hasher_builder.build_hasher(); |
| 48 | h.write(key); |
| 49 | h.finish() |
| 50 | } |
| 51 | |
| 52 | /// Compute FxHash over multiple byte slices concatenated. |
| 53 | /// |
no test coverage detected