def randombytes(n):
 if is_py2:
  L = [chr(random.randrange(0, 256)) for i in range(n)]
 else:
  L = [chr(random.randrange(0, 256)).encode('utf-8') for i in range(n)]
 return ''.join(L)

def randombytes ( n ) : if is_py2 : L = [ chr ( random . randrange ( 0 , 256 ) ) for i in range ( n ) ] else : L = [ chr ( random . randrange ( 0 , 256 ) ) . encode ( 'utf-8' ) for i in range ( n ) ] return '' . join ( L )
return n random bytes .