testing/clusterfuzz/common/fuzzy_types.py
def FlipBits(self, num_bits=None):
    """Flip num_bits bits in the buffer at random."""
    if num_bits is None:
      num_bits = utils.RandomLowInteger(min(1, len(self)), len(self) * 8)
    for bit in random.sample(range(len(self) * 8), num_bits):
      self[bit / 8] ^= 1 << (bit % 8)
Flip num_bits bits in the buffer at random.
Flip num_bits bits in the buffer at random.
Flip num_bits bits in the buffer at random .
def FlipBits(self, num_bits=None):
    if num_bits is None:
      num_bits = utils.RandomLowInteger(min(1, len(self)), len(self) * 8)
    for bit in random.sample(range(len(self) * 8), num_bits):
      self[bit / 8] ^= 1 << (bit % 8)
def FlipBits ( self , num_bits = None ) : if num_bits is None : num_bits = utils . RandomLowInteger ( min ( 1 , len ( self ) ) , len ( self ) * 8 ) for bit in random . sample ( range ( len ( self ) * 8 ) , num_bits ) : self [ bit / 8 ] ^= 1 << ( bit % 8 )
Flip num_bits bits in the buffer at random.
Flip num_bits bits in the buffer at random .
"""Flip num_bits bits in the buffer at random."""
self
num_bits