Optimize.

This commit is contained in:
Nuno Cruces
2024-01-10 16:38:31 +00:00
parent cb1e33a32d
commit 97f2b73701
4 changed files with 46 additions and 19 deletions

View File

@@ -93,6 +93,5 @@ func hashFunc(ctx sqlite3.Context, arg sqlite3.Value, fn crypto.Hash) {
h := fn.New()
h.Write(data)
var res [64]byte
ctx.ResultBlob(h.Sum(res[:0]))
ctx.ResultBlob(h.Sum(nil))
}