Function solana_sdk::hash::new_rand

source ·
pub fn new_rand<R>(rng: &mut R) -> Hash
where R: Rng + ?Sized,
👎Deprecated since 1.17.0: Please use Hash::new_unique() for testing, or fill 32 bytes with any source of randomness
Expand description

Random hash value for tests and benchmarks.