def random_chars(num_chars):
 return binascii.hexlify(os.urandom(int((num_chars / 2)))).decode('ascii')

def random_chars ( num_chars ) : return binascii . hexlify ( os . urandom ( int ( ( num_chars / 2 ) ) ) ) . decode ( 'ascii' )
returns random hex characters .