Computes the SipHash of the collection name
(&self)
| 315 | |
| 316 | /// Computes the SipHash of the collection name |
| 317 | pub fn get_hash(&self) -> u64 { |
| 318 | let mut hasher = SipHasher24::new(); |
| 319 | hasher.write(self.meta.name.as_bytes()); |
| 320 | hasher.finish() |
| 321 | } |
| 322 | |
| 323 | /// computes the key used to store the collection in the database |
| 324 | pub fn get_key(&self) -> [u8; 8] { |