We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
uint::rand::tests::get_four_sequential_rng
1 parent 5f1cf39 commit 02ce155Copy full SHA for 02ce155
src/uint/rand.rs
@@ -176,9 +176,9 @@ mod tests {
176
"0F6760A48F9B887CB2FB0D3281E2A6E67746A55FBAD8C037B585F767A79A3B6C"
177
]);
178
179
- /// Construct 4-sequential `rng`, i.e.,
+ /// Construct a 4-sequential `rng`, i.e., an `rng` such that
180
/// `rng.fill_bytes(&mut buffer[..x]); rng.fill_bytes(&mut buffer[x..])` will construct the
181
- /// same `buffer`, regardless the choice of `x` in `0..buffer.len()`.
+ /// same `buffer`, for `x` any in `0..buffer.len()` that is `0 mod 4`.
182
fn get_four_sequential_rng() -> ChaCha8Rng {
183
ChaCha8Rng::seed_from_u64(0)
184
}
0 commit comments