<分区>
为什么在这台计算机生成的每个 GUID 中间,我们都能看到一个 4?
最佳答案
它是 GUID
算法 version(在你的例子中是 4
):
https://en.wikipedia.org/wiki/Universally_unique_identifier
In its canonical textual representation, the sixteen octets of a UUID are represented as 32 hexadecimal (base 16) digits, displayed in five groups separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 alphanumeric characters and four hyphens). For example:
123e4567-e89b-12d3-a456-426655440000 xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx
The four bits of digit M indicate the UUID version, and the one to three most significant bits of digit N indicate the UUID variant. In the example, M is 1 and N is a (10xx), meaning that the UUID is a variant 1, version 1 UUID; that is, a time-based DCE/RFC 4122 UUID.
关于c# - 具有始终相等编号的 GUID,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46049976/