Crate rand_core
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
Enums
Traits
- CryptoRng A marker trait for securely unpredictable infallible RNGs
- Rng Trait for infallible random number generators
-
RngCore
DEPRECATED: stub trait to print a deprecation warning and aid discovering that
Rngis the replacement. - SeedableRng A random number generator that can be explicitly seeded.
-
TryCryptoRng
A marker trait over
TryRngfor securely unpredictable RNGs - TryRng Base trait for random number generators and random data sources
-
TryRngCore
DEPRECATED: stub trait to print a deprecation warning and aid discovering that
TryRngis the replacement.