fix a bug in cmdkey generation

This commit is contained in:
Darien Raymond committed 2016-01-20 16:45:50 +00:00
1 parent baaef1dad5
commit 23b6b987ca
3 files changed
+28 -1

No files matched your search

+1 -1
View File
@@ -46,6 +46,6 @@ func NewID(uuid *uuid.UUID) *ID {
md5hash := md5.New()
md5hash.Write(uuid.Bytes())
md5hash.Write([]byte("c48619fe-8f02-49e0-b9e9-edf763e17e21"))
md5.Sum(id.cmdKey[:0])
md5hash.Sum(id.cmdKey[:0])
return id
}