Skip to content

Commit f7cfc0d

Browse files
committed
expose jitter rng
Signed-off-by: Markus Theil <[email protected]>
1 parent e1dc1fd commit f7cfc0d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

botan/src/rng.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,16 @@ impl RandomNumberGenerator {
7070
RandomNumberGenerator::new_of_type("esdm-pr")
7171
}
7272

73+
/// Create a new reference to the Jitter RNG
74+
///
75+
/// # Examples
76+
/// ```
77+
/// let jitter_rng = botan::RandomNumberGenerator::new_jitter().unwrap();
78+
/// ```
79+
pub fn new_jitter() -> Result<RandomNumberGenerator> {
80+
RandomNumberGenerator::new_of_type("jitter")
81+
}
82+
7383
/// Create a new reference to an RNG of some arbitrary type
7484
///
7585
/// # Examples

0 commit comments

Comments
 (0)