diff --git a/uuid.go b/uuid.go index d55f0ab..9593780 100644 --- a/uuid.go +++ b/uuid.go @@ -15,7 +15,7 @@ type UUID struct { func (UUID) V4() (uuid string) { var uiq [16]byte io.ReadFull(rand.Reader, uiq[:]) - uiq[6] = (uiq[6] & 0x0f) | 0x40 // Version 4 - uiq[8] = (uiq[8] & 0x3f) | 0x80 // Variant RFC4122 + uiq[6] = (uiq[6] & 0x0f) | 0x40 // Version 4 + uiq[8] = (uiq[8] & 0x3f) | 0x80 // Variant RFC4122 return fmt.Sprintf("%x-%x-%x-%x-%x", uiq[0:4], uiq[4:6], uiq[6:8], uiq[8:10], uiq[10:]) -} \ No newline at end of file +}