fix test break

This commit is contained in:
V2Ray committed 2015-09-14 19:03:31 +02:00
1 parent 097915bf7e
commit 5af327f00b
7 files changed
+53 -19

No files matched your search

+4 -1
View File
@@ -54,7 +54,10 @@ func (v ID) TimeHash(timeSec int64) []byte {
}
func (v ID) Hash(data []byte) []byte {
return v.hasher.Sum(data)
v.hasher.Write(data)
hash := v.hasher.Sum(nil)
v.hasher.Reset()
return hash
}
var byteGroups = []int{8, 4, 4, 4, 12}