Skip to main content

compute_seed

Function compute_seed 

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

Compute a deterministic seed by hashing a string description of the simulation parameters.

Uses FNV-1a hashing which is deterministic across runs (unlike ahash which uses per-process random keys). The same input always produces the same seed.