rfc4122 4.3. Algorithm for Creating a Name-Based UUID
这里面有提及说
同一namespace下,不同name的uuid不同
同一namespace下,相同的name的uuid一定相同
不同的namespace下,uuid一定不同
如果两个name的UUID相同,那么一定是来自同一namespace下的同一name
关于name选取:
The concept of name and name space should be broadly construed, and not limited to textual names. For example, some name spaces are the domain name system, URLs, ISO Object IDs (OIDs), X.500 Distinguished Names (DNs), and reserved words in a programming language.
如何获取
o Allocate a UUID to use as a "name space ID" for all UUIDs
generated from names in that name space; see Appendix C for some
pre-defined values.
o Choose either MD5 [4] or SHA-1 [8] as the hash algorithm; If
backward compatibility is not an issue, SHA-1 is preferred.
rfc4122 4.3. Algorithm for Creating a Name-Based UUID
这里面有提及说
关于name选取:
如何获取
v3版本:md5
v5版本:sha-1
BTW,这个问题google一下不就出来了么?