docs(doctests+coverage): add documentation and doctests for all modules of secret-memory except for alloc

This commit is contained in:
David Niehues
2024-12-12 21:13:18 +01:00
committed by David Niehues
parent d27e602f43
commit 10484cc6d4
9 changed files with 272 additions and 35 deletions

View File

@@ -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()
}