aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/crypto.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-03-17 08:32:35 +0800
committerFelix Lange <fjl@twurst.com>2015-03-17 08:32:35 +0800
commitad78db4d62d392e9462ac4c1f8ac3d9718fdd0fc (patch)
treecaa6081cbade6c4159206b513d9ec82dc30df2c4 /crypto/crypto.go
parent8ce6a3647821706cf5e9bb1a9dc13f23c84f6585 (diff)
downloadgo-tangerine-ad78db4d62d392e9462ac4c1f8ac3d9718fdd0fc.tar.gz
go-tangerine-ad78db4d62d392e9462ac4c1f8ac3d9718fdd0fc.tar.zst
go-tangerine-ad78db4d62d392e9462ac4c1f8ac3d9718fdd0fc.zip
crypto: fix Sha3Hash and add a test for it
Diffstat (limited to 'crypto/crypto.go')
-rw-r--r--crypto/crypto.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/crypto.go b/crypto/crypto.go
index 1f8dfcf32..ec2b41042 100644
--- a/crypto/crypto.go
+++ b/crypto/crypto.go
@@ -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
}