oh, is that right, coz I had read in an article that in UUID version 3 and 5 - if im right- would allow you to use some defined parameters (as a name) and get a same (but unic) resulting string everytime...
that is what I m looking for. Vers 3 or 5. not the other UUID versions...who "would" work in another way.
Doesnt seem s/t that many arround here are using...
PS: adding the ref. to article that says such...(dont know how worth it is.)
https://stackoverflow.com/questions/203 ... ion-to-use
Version 4: These are generated from random (or pseudo-random) numbers. If you just need to generate a UUID, this is probably what you want.
If you need to always generate the same UUID from a given name, you want a version 3 or version 5.
True..
Addding another URl ref. that says the same - as far as I get it
:
...but since its in Python...- I couldnt just "convert" it into LC.
(Maybe s/o here could do it
)
..Plizzzzzzzzzzzz
https://pymotw.com/2/uuid/
The UUID value for a given name in a namespace is always the same, no matter when or where it is calculated. Values for the same name in different namespaces are different.
Code: Select all
import uuid
-----------
for i in xrange(3):
print uuid.uuid3(uuid.NAMESPACE_DNS, 'www.doughellmann.com')
$ python uuid_uuid3_repeat.py
----------------
bcd02e22-68f0-3046-a512-327cca9def8f
bcd02e22-68f0-3046-a512-327cca9def8f
bcd02e22-68f0-3046-a512-327cca9def8f