def get_random_string(length):

    return "{0:0{1}x}".format(random.getrandbits(length * 4), length)
Get a random hex string of the specified length.
dataset/ETHPy150Open openstack/neutron/neutron/common/utils.py/get_random_string