Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Apr 10, 2017
1 parent 68ba51c commit 7a78eee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helper/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ func IsUUID(str string) bool {
return validUUID.MatchString(str)
}

// HashUUID takes an input UUID and returns a hashed version of the UUID to
// ensure it is well distributed.
func HashUUID(input string) (output string, hashed bool) {
if !IsUUID(input) {
return "", false
Expand Down

0 comments on commit 7a78eee

Please sign in to comment.