Skip to content

Commit

Permalink
Implemented fix for uuid api
Browse files Browse the repository at this point in the history
More info here satori/go.uuid#66
  • Loading branch information
ThePotato97 authored May 16, 2018
1 parent 4fc2796 commit ee9cd5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ref.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ func IsEmptyReference(ref string) bool {
// GenerateReference generates a unique string that can be used as a reference
// to an Instance.
func GenerateReference() string {
return "RBX" + strings.ToUpper(hex.EncodeToString(uuid.NewV4().Bytes()))
return "RBX" + strings.ToUpper(hex.EncodeToString(uuid.Must(uuid.NewV4()).Bytes()))
}

0 comments on commit ee9cd5d

Please sign in to comment.