Expand description
clock-rand: Next-generation random number generation
A production-ready Rust crate providing fast deterministic PRNGs, cryptographically secure RNGs, and blockchain-aware RNGs with automatic fork detection. Built for modern applications requiring both speed and security.
By Olyntar Labs, an Olyntar company.
Re-exports§
pub use error::EntropyError;pub use error::Error;pub use error::ForkError;pub use error::Result;pub use error::SeedError;pub use seed::Seed;pub use traits::CryptoRng;pub use traits::DeterministicRng;pub use traits::Rng;pub use traits::RngCore;pub use traits::RngExt;pub use traits::SeedableRng;pub use utils::choose;pub use utils::fill_bytes;pub use utils::gen_f32;pub use utils::gen_f64;pub use utils::gen_range_f32;pub use utils::gen_range_f64;pub use utils::gen_range_u32;pub use utils::gen_range_u64;pub use utils::shuffle;pub use utils::weighted_choose;pub use utils::sample;pub use fast::Pcg64;pub use fast::SplitMix64;pub use fast::Xoshiro256Plus;
Modules§
- error
- Error types for clock-rand
- fast
- Fast deterministic RNGs
- seed
- Seed types and blockchain state seeding
- traits
- Core traits for RNG implementations
- utils
- Utility functions for RNG operations
Functions§
- fast_
rng_ from_ blockchain - Convenience constructor for fast RNG from blockchain state
Type Aliases§
- FastRng
- Fast deterministic RNG type alias (Xoshiro256+)