Skip to content

Commit 64ac013

Browse files
committed
Improve BlockRng64 test
1 parent 8006bc3 commit 64ac013

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

rand_core/src/block.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,8 @@ mod test {
527527
(&mut b[4..8]).copy_from_slice(&rng2.next_u32().to_le_bytes());
528528
(&mut b[8..]).copy_from_slice(&rng2.next_u64().to_le_bytes());
529529
assert_ne!(a, b);
530+
assert_eq!(&a[..4], &b[..4]);
531+
assert_eq!(&a[4..12], &b[8..]);
530532

531533
let mut c = [0; 16];
532534
(&mut c[..8]).copy_from_slice(&rng3.next_u64().to_le_bytes());

0 commit comments

Comments
 (0)