We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 960c87a commit 0093739Copy full SHA for 0093739
crypto/keccak.go
@@ -41,8 +41,8 @@ func Keccak256(data ...[]byte) []byte {
41
b := make([]byte, 32)
42
d := hasherPool.Get().(KeccakState)
43
d.Reset()
44
- for _, b := range data {
45
- d.Write(b)
+ for _, chunk := range data {
+ d.Write(chunk)
46
}
47
d.Read(b)
48
hasherPool.Put(d)
@@ -54,8 +54,8 @@ func Keccak256(data ...[]byte) []byte {
54
func Keccak256Hash(data ...[]byte) (h common.Hash) {
55
56
57
58
59
60
d.Read(h[:])
61
0 commit comments