From b01326619823ac2eec81151e38fc2ae3efdca3d8 Mon Sep 17 00:00:00 2001 From: Noah Stiltner Date: Sat, 11 Nov 2023 14:40:29 -0600 Subject: [PATCH] minor correction: WordPosInput doesn't force the bytes to be in little endian order --- chacha20/src/rng.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chacha20/src/rng.rs b/chacha20/src/rng.rs index 9584b233..d3894d70 100644 --- a/chacha20/src/rng.rs +++ b/chacha20/src/rng.rs @@ -497,7 +497,7 @@ macro_rules! impl_chacha_rng { /// As with `get_word_pos`, we use a 36-bit number. Since the generator /// simply cycles at the end of its period (256 GiB), we ignore the upper 28 /// bits of a `u64`. When given a `[u8; 5]`, we ignore the first 4 bits of the - /// last little endian byte. + /// last byte. #[inline] pub fn set_word_pos>(&mut self, word_offset: W) { let word_offset: WordPosInput = word_offset.into();