mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-03-01 06:53:10 -08:00
10 lines
287 B
Rust
10 lines
287 B
Rust
//! This module provides functionality for generating random numbers using the [rand] crate.
|
|
|
|
/// We use the [ThreadRng](rand::rngs::ThreadRng) for randomness in this crate.
|
|
pub type Rng = rand::rngs::ThreadRng;
|
|
|
|
/// Get the default [Rng].
|
|
pub fn rng() -> Rng {
|
|
rand::thread_rng()
|
|
}
|