Avoid no-op in ByteRandMutator (#999)
This commit is contained in:
parent
7cf7d545a6
commit
15c1c0fb5e
@ -311,7 +311,7 @@ where
|
||||
Ok(MutationResult::Skipped)
|
||||
} else {
|
||||
let byte = state.rand_mut().choose(input.bytes_mut());
|
||||
*byte = state.rand_mut().next() as u8;
|
||||
*byte ^= 1 + state.rand_mut().below(254) as u8;
|
||||
Ok(MutationResult::Mutated)
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user