Skip to content

Commit

Permalink
feat: add Max UUID constant (google#149)
Browse files Browse the repository at this point in the history
add Max uuid
  • Loading branch information
it512 authored and tkarrass committed Sep 11, 2024
1 parent 16526d6 commit 240aae1
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 240aae1

Please sign in to comment.