pub fn generate_permutation(
perm: &mut [u16],
rng: &mut dyn CryptoRng,
) -> Result<(), MlDsaError>Expand description
Generate a uniform random permutation of 0..n in-place using
Fisher-Yates with rejection sampling on 16-bit RNG output.
perm must be a slice of length n; on entry its contents are
overwritten with the identity permutation, then shuffled in place.