Docstring.

This commit is contained in:
Itamar Turner-Trauring 2021-01-04 14:34:18 -05:00
parent d7db34f27a
commit 6f0838e2e9

View File

@ -181,6 +181,7 @@ def insecurerandstr(n):
return b''.join(map(bchr, map(randrange, [0]*n, [256]*n)))
def flip_bit(good, which):
"""Flip the low-order bit of good[which]."""
if which == -1:
pieces = good[:which], good[-1:], b""
else: