Skip to main content

stable_id

Function stable_id 

Source
pub fn stable_id(value: &str) -> u64
Expand description

Derive a stable 64-bit identifier from content.

Uses FNV-1a over the UTF-8 bytes of value. The result is deterministic across insertion order, target platform and process restarts; it must be preferred over counter-based IDs whenever identity needs to survive persistence.