Skip to main content

seed_from_id

Function seed_from_id 

Source
pub fn seed_from_id(id: &str) -> u64
Expand description

Derive a deterministic u64 seed from an opaque string identifier.

Uses the first 8 bytes of SHA-256(id) interpreted as little-endian u64. The result is stable across runs for the same id string.