mirror of
https://github.com/rosenpass/rosenpass.git
synced 2026-03-01 15:03:21 -08:00
docs(doctests+coverage): add documentation and doctests for all modules of secret-memory except for alloc
This commit is contained in:
committed by
David Niehues
parent
d27e602f43
commit
10484cc6d4
@@ -1,5 +1,9 @@
|
||||
//! 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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user