crypto: reuse function

This commit is contained in:
Piotr Mikołajczyk 2025-11-18 11:30:13 +01:00
parent d6d341ea6f
commit 835ef75baa
No known key found for this signature in database
GPG key ID: 2E4C2AAD5E71D22D

View file

@ -32,7 +32,7 @@ func NewKeccakState() KeccakState {
var hasherPool = sync.Pool{
New: func() any {
return sha3.NewLegacyKeccak256().(KeccakState)
return NewKeccakState()
},
}