mirror of
https://github.com/ncruces/go-sqlite3.git
synced 2026-01-12 05:59:14 +00:00
Optimize.
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user