Advertisement
Guest User

Untitled

a guest
May 25th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.15 KB | None | 0 0
  1. // UUID Formats:
  2. //
  3. // a - time-low
  4. // b - time-mid
  5. // c - time-high-and-version
  6. // d - clock-seq-and-reserved
  7. // e - clock-seq-low
  8. // f - node
  9. //
  10. // aaaaaaaa-bbbb-cccc-ddee-ffffffffffff
  11. //               |    |
  12. //               |    + 0 x x = NCS backward compat
  13. //               |    + 1 0 x = This specification
  14. //               |    + 1 1 0 = Reserved, Microsoft
  15. //               |    + 1 1 1 = Reserved for future
  16. //               |
  17. //               + 0 0 0 1 = Time-based
  18. //               + 0 0 1 0 = DCE Security
  19. //               + 0 0 1 1 = Name Based (md5)
  20. //               + 0 1 0 0 = Random
  21. //               + 0 1 0 1 = Name Based (sha1)
  22. //
  23. //
  24. // Version 1 - timestamp is count of 100-nanosecond intervals
  25. //             since 00:00:00.00, 15 October 1582
  26. //             - Clock seq is 14 bit variance number
  27. //             - Node is Mac Address
  28. // Version 4 - timestamp is random
  29. //           - clock seq is 14 bit random number
  30. //           - node is 48 bit random
  31. // Version 3 &
  32. // Version 5 - timestamp generated from a 'name'
  33. //           - clock seq is generated from a 'name'
  34. //           - node is generated from a 'name'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement