The uuid4() function of Python\'s module uuid generates a random UUID, and seems to generate a different one every time:
uuid
In [1]: import uuid In
This is based on a solution used here:
import hashlib import uuid m = hashlib.md5() m.update(seed.encode('utf-8')) new_uuid = uuid.UUID(m.hexdigest())