/// Overwrites a block with random bytes.
Overwrites a block with random bytes.
Overwrites a block with random bytes .
fn overwrite_random(
    _ctx: &mut Context,
    rng: &mut RngType,
    buf: &mut Vec<u8>,
    _r: RangeInclusive<u64>,
) -> bool {
    let len = buf.len();
    if len < 2 {
        return false;
    }
    let r = rand_op_range(rng, len);
    rng.fill(&mut buf[r]);
    true
}
fn overwrite_random ( _ctx : & mut Context , rng : & mut RngType , buf : & mut Vec < u8 > , _r : RangeInclusive < u64 > , ) -> bool { let len = buf . len ( ) ; if len < 2 { return false ; } let r = rand_op_range ( rng , len ) ; rng . fill ( & mut buf [ r ] ) ; true }
Overwrites a block with random bytes.
Overwrites a block with random bytes .
_ctx
&mut Context
rng
&mut RngType
buf
&mut Vec<u8>
_r
RangeInclusive<u64>