pub trait HpkeTestRng {
    // Required methods
    fn try_fill_test_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error>;
    fn seed(&mut self, seed: &[u8]);
}
Expand description

PRNG extension for testing that is supposed to return pre-configured bytes.

Required Methods§

source

fn try_fill_test_bytes(&mut self, dest: &mut [u8]) -> Result<(), Error>

Like RngCore::try_fill_bytes but the result is expected to be known.

source

fn seed(&mut self, seed: &[u8])

Set the randomness state of this test PRNG.

Implementors§