Skip to content

const PRNG_INVALID_INPUT_ERROR_CODES: readonly ["INVALID_BOUND", "INVALID_SOURCE_VALUE", "INVALID_STATE"]

Defined in: packages/prng/src/errors.ts:12

The canonical, ordered list of machine-readable input errors emitted by knotkit/prng.

INVALID_BOUND marks a sampling bound outside the range a 32-bit draw can serve, INVALID_SOURCE_VALUE an injected random source returning a value outside [0, 1), and INVALID_STATE a generator receiving a forbidden initial state.