Skip to main content

sendmock_core/
random_source.rs

1mod seeded_random_source;
2mod system_random_source;
3
4pub use seeded_random_source::SeededRandomSource;
5pub use system_random_source::SystemRandomSource;
6
7/// Random numbers for codes, generated values and simulated failures, replaceable in tests.
8pub trait RandomSource: Send + Sync {
9    fn next_u64(&self) -> u64;
10}