How do I get a UUID?

How do I get a UUID?
Answer
The procedure to generate a version 4 UUID is as follows:
  1. Generate 16 random bytes (=128 bits)
  2. Adjust certain bits according to RFC 4122 section 4.4 as follows: …
  3. Encode the adjusted bytes as 32 hexadecimal digits.
  4. Add four hyphen “-” characters to obtain blocks of 8, 4, 4, 4 and 12 hex digits.
 

Tìm kiếm

Back
Top