updated test

This commit is contained in:
mamoniot 2022-12-27 22:56:15 -05:00
parent 4738cedc49
commit 87b40cd1a0

View file

@ -238,9 +238,9 @@ mod tests {
let c; let c;
if p < 0.5 { if p < 0.5 {
let r = xorshift64(&mut rng); let r = xorshift64(&mut rng);
c = counter.wrapping_add(r%(COUNTER_MAX_ALLOWED_OOO - 1) as u32 + 1); c = counter + (r%(COUNTER_MAX_ALLOWED_OOO - 1) as u32 + 1);
} else if p < 0.8 { } else if p < 0.8 {
counter = counter.wrapping_add(1); counter = counter + (1);
c = counter; c = counter;
} else if p < 0.9 { } else if p < 0.9 {
if history.len() > 0 { if history.len() > 0 {