Skip to content

Commit 8006bc3

Browse files
committed
Use odd increments
1 parent 4addc75 commit 8006bc3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rand_core/src/block.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ mod test {
448448
fn generate(&mut self, results: &mut Self::Results) {
449449
for r in results {
450450
*r = self.counter;
451-
self.counter = self.counter.wrapping_add(3511615422);
451+
self.counter = self.counter.wrapping_add(3511615421);
452452
}
453453
}
454454
}
@@ -498,7 +498,7 @@ mod test {
498498
fn generate(&mut self, results: &mut Self::Results) {
499499
for r in results {
500500
*r = self.counter;
501-
self.counter = self.counter.wrapping_add(2781463553396133982);
501+
self.counter = self.counter.wrapping_add(2781463553396133981);
502502
}
503503
}
504504
}

0 commit comments

Comments
 (0)