Always equal GUID

Why in the middle of each GUID that this computer generates, we can see 4?

enter image description here

+5
source share
2 answers

This is the version of the GUID algorithm ( 4 in your case):

https://en.wikipedia.org/wiki/Universally_unique_identifier

In its canonical textual representation, sixteen UUID octets are represented as 32 hexadecimal (base 16) digits displayed in five groups, separated by a hyphen, in the form 8-4-4-4-12, for a total of 36 characters (32 alphanumeric characters and four hyphens). For instance:

 123e4567-e89b-12d3-a456-426655440000 xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx 

The four bits of the digit M indicate the version of the UUID, and the three most significant bits of the digit N indicate the version of the UUID. For example, M is 1, and N is (10xx), which means that the UUID is option 1, version 1 of the UUID; i.e. temporary DCE / RFC 4122 UUID.

+7
source

This is due to the version of GUID/UUID's ;

Some good information can be found here , but mostly it's version 4, which uses the following format:

  xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx 
+1
source

Source: https://habr.com/ru/post/1271521/


All Articles