Skip to content

Commit

Permalink
Merge branch 'monotonicity' of http://47.75.211.166:5080/https://gith…
Browse files Browse the repository at this point in the history
…ub.com/it512/uuid into monotonicity
  • Loading branch information
it512 committed Jan 10, 2024
2 parents 654bc6c + f27ed75 commit 64f9de4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ var (
NameSpaceOID = Must(Parse("6ba7b812-9dad-11d1-80b4-00c04fd430c8"))
NameSpaceX500 = Must(Parse("6ba7b814-9dad-11d1-80b4-00c04fd430c8"))
Nil UUID // empty UUID, all zeros

// The Max UUID is special form of UUID that is specified to have all 128 bits set to 1.
Max = UUID{
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
}
)

// NewHash returns a new UUID derived from the hash of space concatenated with
Expand Down

0 comments on commit 64f9de4

Please sign in to comment.