mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-22 22:33:58 -07:00
updated test
This commit is contained in:
parent
4738cedc49
commit
87b40cd1a0
1 changed files with 2 additions and 2 deletions
|
@ -238,9 +238,9 @@ mod tests {
|
|||
let c;
|
||||
if p < 0.5 {
|
||||
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 {
|
||||
counter = counter.wrapping_add(1);
|
||||
counter = counter + (1);
|
||||
c = counter;
|
||||
} else if p < 0.9 {
|
||||
if history.len() > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue