Which UUID version to use? - Stack Overflow
stackoverflow.com › questions › 20342058Dec 03, 2013 · Looking through the interface provided, the easiest option for you would be to generate a v4 UUID (that is, one created from random data) by calling uuid.uuid4 (). If you have some data that you need to (or can) hash to generate a UUID from, then you can use either v3 (which relies on MD5) or v5 (which relies on SHA1).