DoxigAlpha

DefaultCsprng

Cryptographically secure random numbers.

Fields of this type

Fields

#
offset:usize

The seed must be uniform, secret and `secret_seed_length` bytes long.

Functions

#
init
The seed must be uniform, secret and `secret_seed_length` bytes long.
addEntropy
Inserts entropy to refresh the internal state.
random
Returns a `std.Random` structure backed by the current RNG.
fill
Fills the buffer with random bytes.

= Cipher.key_length

Values

#
secret_seed_length
= Cipher.key_length