I went through the documentation for python UUID module.
>>> uuid.uuid4()
UUID('82fe5629-6680-4b13-a4e3-7a082f10e038')
>>> uuid.uuid4()
UUID('b2721a42-5645-4deb-bbbd-6ba1a55820d8')
>>> uuid.uuid4()
UUID('632736f8-a935-4335-a56d-56cd8ebc7dbf')
>>> uuid.uuid4()
UUID('a3519262-72d6-40ce-8e49-f65e8637ec07')
Every time it generates a random value. But my question is, what if I need to fix the first value and rest of them would be random. Is it possible?
e.g.,
>>> uuid.somefn("a3519262")
UUID('a3519262-72d6-40ce-8e49-f65e8637ec07')
>>> uuid.somefn("a3519262")
UUID('a3519262-a935-4335-a56d-56cd8ebc7dbf')
Reason I was looking for this solution: I have multiple systems talking to a centralized system, So based on the uuid I want to segregate the source/load on the system for metrics purpose. Any alternative solution is also welcome.
Thanks in advance.