crypto: fix Sha3Hash and add a test for it
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user