Expand description
§rand_core: core random number generation traits
This crate provides a collection of traits used by implementations of Random Number Generation (RNG) algorithms. Additionally, it includes helper utilities that assist with the implementation of these traits.
Note that the traits focus solely on the core RNG functionality. Most users should prefer
the rand crate, which offers more advanced RNG capabilities built on these core traits,
such as sampling from restricted ranges, generating floating-point numbers, list permutations,
and more.
§License
The crate is licensed under either of:
at your option.
Modules§
Structs§
- Unwrap
Err - Wrapper around
TryRngCoreimplementation which implementsRngCoreby panicking on potential errors. - Unwrap
Mut - Wrapper around
TryRngCoreimplementation which implementsRngCoreby panicking on potential errors.
Traits§
- Crypto
Rng - A marker trait over
RngCorefor securely unpredictable RNGs - RngCore
- Implementation-level interface for RNGs
- Seedable
Rng - A random number generator that can be explicitly seeded.
- TryCrypto
Rng - A marker trait over
TryRngCorefor securely unpredictable RNGs - TryRng
Core - A potentially fallible variant of
RngCore