status: draft (2026-05-03)
keywords: Randomness
See also SRFI 27: Sources of Random Bits and SRFI 194: Random data generators.This SRFI proposes a pattern of libraries for binary input ports that produce random bytes. Libraries are divided into “cryptographic” and “repeatable” categories to address different uses of random data. The design leaves the details of random number generation to the implementer and the transformation of bytes to other types (floats, etc.) to higher-level libraries. A mechanism for saving random-port states as bytevectors and for propagating those states to new ports is also provided.