/// Creates a CSPRNG from the given seed for the given purpose.
Creates a CSPRNG from the given seed for the given purpose.
Creates a CSPRNG from the given seed for the given purpose .
pub fn from_seed_and_purpose(seed: &Randomness, purpose: &RandomnessPurpose) -> Self {
        let mut hasher = Sha256::new();
        hasher.write(&seed.get());
        hasher.write(&purpose.domain_separator());
        Csprng::from_seed(hasher.finish())
    }
pub fn from_seed_and_purpose ( seed : & Randomness , purpose : & RandomnessPurpose ) -> Self { let mut hasher = Sha256 :: new ( ) ; hasher . write ( & seed . get ( ) ) ; hasher . write ( & purpose . domain_separator ( ) ) ; Csprng :: from_seed ( hasher . finish ( ) ) }
Creates a CSPRNG from the given seed for the given purpose.
Creates a CSPRNG from the given seed for the given purpose .
seed
&Randomness
purpose
&RandomnessPurpose