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
TryRngimplementation which implementsRngby panicking on potential errors.
Enums§
- Infallible
- The error type for errors that can never happen.
Traits§
- Crypto
Rng - A marker trait for securely unpredictable infallible RNGs
- Rng
- Trait for infallible random number generators
- RngCore
Deprecated - DEPRECATED: stub trait to print a deprecation warning and aid discovering that
Rngis the replacement. - Seedable
Rng - A random number generator that can be explicitly seeded.
- TryCrypto
Rng - A marker trait over
TryRngfor securely unpredictable RNGs - TryRng
- Base trait for random number generators and random data sources
- TryRng
Core Deprecated - DEPRECATED: stub trait to print a deprecation warning and aid discovering that
TryRngis the replacement.