Skip to content

Commit

Permalink
feat: add Max UUID constant (#149)
Browse files Browse the repository at this point in the history
add Max uuid
  • Loading branch information
it512 committed Jan 9, 2024
1 parent 4d47f8e commit c58770e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hash.go
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 c58770e

Please sign in to comment.