Skip to main content

Module rng

Module rng 

Source

Macrosยง

impl_chacha_rng ๐Ÿ”’

Structsยง

ChaCha8Rng
A cryptographically secure random number generator that uses the ChaCha stream cipher.
ChaCha12Rng
A cryptographically secure random number generator that uses the ChaCha stream cipher.
ChaCha20Rng
A cryptographically secure random number generator that uses the ChaCha stream cipher.

Constantsยง

BLOCK_WORDS ๐Ÿ”’
Number of 32-bit words per ChaCha block (fixed by algorithm definition).
BUFFER_SIZE ๐Ÿ”’
Buffer size in words used by buffered RNG.
BUF_BLOCKS ๐Ÿ”’
Number of blocks generated by RNG core.

Type Aliasesยง

Seed
Seed value used to initialize ChaCha-based RNGs.
SerializedRngState
Serialized RNG state.