Expand description
Deterministic synthetic data for ${fake:*} (ADR-0005).
Determinism contract: values derive from the injected run id (FNV-1a →
SplitMix64) plus the generator name and its occurrence index within one
resolution — the same run id reproduces the same values (pin a run id to
reproduce a flaky run), distinct run ids produce independent data. The
module is dependency-free so the sequence is stable across crate versions.
Unknown generator names are rejected statically at pack load (the validator
consults is_known_generator) — a typo never survives to run time.
Constants§
- GENERATORS
- Every generator name
${fake:*}understands (fixed vocabulary; kept in sync withgenerateby a test).
Functions§
- generate
- One deterministic value for
generator, derived from(run_id, occurrence).Nonefor unknown generators (callers reject those statically). - is_
known_ generator - Whether
nameis a known generator (static pack validation).