[][src]Function sodiumoxide::crypto::pwhash::argon2i13::gen_salt

pub fn gen_salt() -> Salt

gen_salt() randomly generates a new Salt for key derivation

THREAD SAFETY: gen_salt() is thread-safe provided that you have called sodiumoxide::init() once before using any other function from sodiumoxide.