Skip to main content

prng_array

Function prng_array 

Source
pub fn prng_array<T, const N: usize>(seed: [u8; 32]) -> [T; N]
where T: Randomizable,
Expand description

Generates a deterministic array using a PRNG seeded with the provided seed.

ยงExamples

let seed = [0u8; 32];
let arr: [u64; 4] = prng_array(seed);