Function hamming_dict::generate_dict_rand[][src]

pub fn generate_dict_rand<const B: usize>(dict: &mut [BitArray<B>])
Expand description

Generate a deterministic dictionary by mutating a slice of BitArray.

The actual values of the input slice are ignored, as they are replaced with random values. This is deterministic based on the number of words in the dictionary (length of dict) only.

Internally this uses Xoshiro256PlusPlus, calling SeedableRng::seed_from_u64 with 0 as seed.