def random_bytes_hex(bytes_length):
 return hexlify(os.urandom(bytes_length)).decode('utf-8')

def random_bytes_hex ( bytes_length ) : return hexlify ( os . urandom ( bytes_length ) ) . decode ( 'utf-8' )
return a hexstring of bytes_length cryptographic-friendly random bytes .