Skip to main content

Module seed

Module seed 

Source
Expand description

Deterministic seed computation for reproducible simulations.

When no explicit --seed is provided, a seed is derived from the simulation parameters so that identical inputs always produce identical output across runs and processes.

Functionsยง

compute_seed
Compute a deterministic seed by hashing a string description of the simulation parameters.
derive_seed
Derive a deterministic sub-seed scoped to a named namespace (e.g. a contig name) from a parent seed. Used to produce independent, reproducible RNG streams for per-contig work (reference normalization, etc.) without disturbing the main simulation RNG.
resolve_seed
Resolve the effective seed: use the explicit seed if provided, otherwise derive one from the given parameter description string.