Searched refs:corrupt_bits (Results 1 – 3 of 3) sorted by relevance
14 from scapy.utils import corrupt_bits,corrupt_bytes734 return corrupt_bits(self.s, self.p, self.n)
675 def corrupt_bits(s, p=0.01, n=None): function
346 assert(corrupt_bits("ABCDE") in [b"EBCDE", b"ABCDG"])347 assert(sane(corrupt_bits("ABCDE", n=3)) in ["AF.EE", "QB.TE"])