parameters: (nbytes)
docstring: Generate one random binary string.
docstring_summary: Generate one random binary string.
docstring_tokens: Generate one random binary string .
function: def random_bytes(nbytes):
      """
      Generate one random binary string.
      """
      # NOTE getrandbits(0) fails
      if nbytes > 0:
          return random.getrandbits(nbytes * 8).to_bytes(nbytes,
                                                         byteorder='little')
      else:
          return b""
function_tokens: def random_bytes ( nbytes ) : # NOTE getrandbits(0) fails if nbytes > 0 : return random . getrandbits ( nbytes * 8 ) . to_bytes ( nbytes , byteorder = 'little' ) else : return b""