[][src]Function stellar_base::crypto::init

pub fn init() -> Result<()>

Initialize the sodium library and chooses faster version of the primitives if possible.

init also makes KeyPair::random() thread-safe.