Random

Trait Random 

Source
pub trait Random {
    // Required method
    fn random_stream(&self) -> Box<dyn Stream>;
}
Expand description

Random is a trait that can be mixed in to local suite definitions.

Required Methods§

Source

fn random_stream(&self) -> Box<dyn Stream>

[random_stream()] returns a cipher::Stream that produces a cryptographically random key stream. The stream must tolerate being used in multiple goroutines.

Implementors§