Closed Jengamon closed 3 months ago
Fix the seed code so that instead of being fixed to [u8; 32], the SeedableRng::Seed type is allowed to be [u32; N] (through the use of std::array::from_fn), and the seed is simply the low and high bytes repeated in order, ad infinitum.
SeedableRng::Seed
[u32; N]
std::array::from_fn
Ah yeah, good catch!
Fix the seed code so that instead of being fixed to [u8; 32], the
SeedableRng::Seed
type is allowed to be[u32; N]
(through the use ofstd::array::from_fn
), and the seed is simply the low and high bytes repeated in order, ad infinitum.