/// Changes a byte to special byte.
Changes a byte to special byte.
Changes a byte to special byte .
fn modify_special8(
    _ctx: &mut Context,
    rng: &mut RngType,
    buf: &mut Vec<u8>,
    _r: RangeInclusive<u64>,
) -> bool {
    if buf.is_empty() {
        return false;
    }
    let pos = rng.gen_range(0..buf.len());
    buf[pos] = *SPECIAL_BYTE.choose(rng).unwrap();
    true
}
fn modify_special8 ( _ctx : & mut Context , rng : & mut RngType , buf : & mut Vec < u8 > , _r : RangeInclusive < u64 > , ) -> bool { if buf . is_empty ( ) { return false ; } let pos = rng . gen_range ( 0 .. buf . len ( ) ) ; buf [ pos ] = * SPECIAL_BYTE . choose ( rng ) . unwrap ( ) ; true }
Changes a byte to special byte.
Changes a byte to special byte .
_ctx
&mut Context
rng
&mut RngType
buf
&mut Vec<u8>
_r
RangeInclusive<u64>