[][src]Function solana_libra_crypto::ed25519::compat::generate_keypair

pub fn generate_keypair<'a, T>(
    opt_rng: T
) -> (Ed25519PrivateKey, Ed25519PublicKey) where
    T: Into<Option<&'a mut StdRng>> + Sized

Generate an arbitrary key pair, with possible Rng input

Warning: if you pass in None, this will not return distinct results every time! Should you want to write non-deterministic tests, look at solana_libra_config::config_builder::util::get_test_config