Crate rand_core [−] [src]
Random number generation traits
This crate is mainly of interest to crates publishing implementations of
RngCore
. Other users are encouraged to use the rand crate instead
which re-exports the main traits and error types.
RngCore
is the core trait implemented by algorithmic pseudo-random number
generators and external random-number sources.
SeedableRng
is an extension trait for construction from fixed seeds and
other random number generators.
Error
is provided for error-handling. It is safe to use in no_std
environments.
The impls
and le
sub-modules include a few small functions to assist
implementation of RngCore
.
Modules
impls |
Helper functions for implementing |
le |
Little-Endian utilities |
Structs
Error |
Error type of random number generators |
Enums
ErrorKind |
Error kind which can be matched over. |
Traits
BlockRngCore |
A trait for RNGs which do not generate random numbers individually, but in
blocks (typically |
CryptoRng |
A marker trait used to indicate that an |
RngCore |
The core of a random number generator. |
SeedableRng |
A random number generator that can be explicitly seeded. |