diff --git a/ref.go b/ref.go index 2530dba..e369fb4 100644 --- a/ref.go +++ b/ref.go @@ -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())) }