github.com/pborman/uuid v1.2.0

This commit is contained in:
Jordan Liggitt
2019-04-05 11:51:23 -04:00
parent 319ff2fd31
commit e2e1f497d0
70 changed files with 437 additions and 393 deletions

View File

@@ -27,7 +27,7 @@ var (
func NewHash(h hash.Hash, space UUID, data []byte, version int) UUID {
h.Reset()
h.Write(space[:])
h.Write([]byte(data))
h.Write(data)
s := h.Sum(nil)
var uuid UUID
copy(uuid[:], s)