Function winter_rand_utils::rand_array

source ·
pub fn rand_array<R: Randomizable + Debug, const N: usize>() -> [R; N]
Expand description

Returns an array of random value of the specified type and the specified length.

§Panics

Panics if:

  • A valid value requires at over 32 bytes.
  • A valid value could not be generated after 1000 tries.