(&mut self, bytes: &[u8])
| 35 | } |
| 36 | |
| 37 | fn write(&mut self, bytes: &[u8]) { |
| 38 | for &b in bytes { |
| 39 | self.hash = self.hash.rotate_left(5) ^ (b as u64).wrapping_mul(FX_SEED); |
| 40 | } |
| 41 | } |
| 42 | } |
| 43 | |
| 44 | /// Compute the hash for a key using the FxHash algorithm. |
no test coverage detected