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

pub fn gen_salt() -> Salt

gen_salt() randombly 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.