Module rand

Source
Expand description

Pseudo-random element generation.

Structs§

RpoRandomCoin
A simplified version of the SPONGE_PRG reseedable pseudo-random number generator algorithm described in https://eprint.iacr.org/2011/499.pdf.
RpxRandomCoin
A simplified version of the SPONGE_PRG reseedable pseudo-random number generator algorithm described in https://eprint.iacr.org/2011/499.pdf.
WinterRandomCoin
Pseudo-random element generator for finite fields, which is a default implementation of the RandomCoin trait.

Enums§

RandomCoinError
Defines errors which can occur when drawing values from a random coin.

Traits§

FeltRng
Pseudo-random element generator.
RandomCoin
Pseudo-random element generator for finite fields.
Randomizable
Defines how Self can be read from a sequence of random bytes.