import random import time def get_uid(): return hex(int(time.time() * 10 ** 7) + random.randint(0, 10000))[2:]