sendmock-core 1.2.0

Shared types for SendMock: events, value objects, errors, clock and id traits.
Documentation
1
2
3
4
5
6
7
8
9
10
mod seeded_random_source;
mod system_random_source;

pub use seeded_random_source::SeededRandomSource;
pub use system_random_source::SystemRandomSource;

/// Random numbers for codes, generated values and simulated failures, replaceable in tests.
pub trait RandomSource: Send + Sync {
    fn next_u64(&self) -> u64;
}