具有始终相等编号的 GUID

GUID with a always equal number

为什么在这台电脑生成的每个GUID中间,我们都能看到一个4?

这是GUID算法版本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.

这是由于正在使用的 GUID/UUID's 版本所致;

可以找到一些很好的信息here,但基本上这些是使用以下格式的第 4 版:

 xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx