kyber_rs/
random.rs

1use crate::cipher;
2
3/// [`Random`] is a trait that can be mixed in to local suite definitions.
4pub trait Random {
5    /// [`random_stream()`] returns a [`cipher::Stream`] that produces a
6    /// cryptographically random key stream. The stream must
7    /// tolerate being used in multiple goroutines.
8    fn random_stream(&self) -> Box<dyn cipher::Stream>;
9}