/SequentialGuid

Sequential guid generator

Primary LanguageC#Apache License 2.0Apache-2.0

SequentialGuid

Sequential guid generator.

Format is as follows:

counter process id machine id unix epoch time empty
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
  • unix epoch time - number of seconds since 01.01.1970, big endian order
  • machine id - first 4 bytes of MD5 hash taken from machine name, order 8-9-6-7
  • process id - first 2 bytes of process identifier, order 4-5
  • counter - auto-incrementing overflow integer counter, start value is randomly generated during process startup, big endian order