crypto: fix Sha3Hash and add a test for it

This commit is contained in:
Felix Lange
2015-03-17 01:32:35 +01:00
parent 8ce6a36478
commit ad78db4d62
2 changed files with 8 additions and 2 deletions

View File

@ -42,7 +42,7 @@ func Sha3Hash(data ...[]byte) (h common.Hash) {
for _, b := range data {
d.Write(b)
}
d.Sum(h[:])
d.Sum(h[:0])
return h
}