Peach :: Generators :: flipper :: PartialFlipper :: Class PartialFlipper
[hide private]

Class PartialFlipper

source code


Performs flips of 20% of bits in data.

Instance Methods [hide private]
 
__init__(self, group, data, maxRounds=None) source code
 
next(self) source code
 
reset(self) source code
 
getRawValue(self) source code
Class Variables [hide private]
  _data = None
  _position = 0
Method Details [hide private]

__init__(self, group, data, maxRounds=None)
(Constructor)

source code 
Parameters:
  • data (string) - Binary static blob to flip
  • maxRounds (int) - optional, override 0.2% with a fixed number