Return a random bytes object of length n.
(n)
| 628 | return bytes(ret) |
| 629 | |
| 630 | def random_bytes(n): |
| 631 | """Return a random bytes object of length n.""" |
| 632 | return bytes(random.getrandbits(8) for i in range(n)) |
| 633 | |
| 634 | def bitflipper(expr): |
| 635 | """Return a callable that evaluates expr and returns it with a random bitflip.""" |
no outgoing calls
no test coverage detected