mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
crypto: reuse function
This commit is contained in:
parent
d6d341ea6f
commit
835ef75baa
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@ func NewKeccakState() KeccakState {
|
||||||
|
|
||||||
var hasherPool = sync.Pool{
|
var hasherPool = sync.Pool{
|
||||||
New: func() any {
|
New: func() any {
|
||||||
return sha3.NewLegacyKeccak256().(KeccakState)
|
return NewKeccakState()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue