pub trait FromEntropy {
    type E: Error;

    // Required method
    fn from_entropy(entropy: &[u8]) -> Result<Self, Self::E>
       where Self: Sized;
}
Expand description

Construct a value from user-provided entropy.

Required Associated Types§

Required Methods§

source

fn from_entropy(entropy: &[u8]) -> Result<Self, Self::E>
where Self: Sized,

Construct a value from user-provided entropy.

Returns a value from entropy or error.

Implementors§