Expand description
Code generation (RFC-003 §4, FR-1) and input validation (FR-2).
Generation uses rejection sampling to avoid modulo bias and fails closed on RNG error — never substituting a deterministic or partial value (INV-3).
Functions§
- generate_
code - Generate a fresh plaintext code under
policy, drawing randomness fromrng. - validate_
code_ input - Validate and normalize raw user-supplied code input under
policy.