I need to create a set of static UUIDs in python which is each time the same.
So I created the following function:
def uuid_generator():
seed = 2459234408052414943112311245669091401656 # Just a large random number
while True:
yield uuid.UUID(int=seed)
seed += 1
This function works fine so far, but I don't like the fact that the UUIDs are just upcounting by this implementation.
So I'm wondering how to change the UUID seed value each time the function is called, so the generated UUIDs
- Remain deterministic
- Are each time different (for a relatively small number of calls, let's say 1000 UUIDs)
- Changed in a way they are not just counting up by one.