pub const fn sequential_bytes<const N: usize>() -> [u8; N]Expand description
Build an N-byte array whose elements are 0, 1, 2, …, N-1 (mod 256).
Used to construct fixed test keys for cipher-based RNGs so that the key bytes appear only once in the codebase rather than being repeated at each call site as an inline hex literal.
§Warning — NOT FOR PRODUCTION USE
Sequential byte strings [0x00, 0x01, …, N-1] are present in every
published test-vector corpus. Any cipher initialised with these values in
a real deployment would be immediately broken. Use a cryptographically
secure random source for all production key material.