refactor: replace Bun.hash with Hash.fast using xxhash3-xxh64

This commit is contained in:
Dax Raad
2026-03-05 22:03:24 -05:00
parent dad248832d
commit a9bf1c0505
3 changed files with 13 additions and 4 deletions

View File

@@ -0,0 +1,7 @@
import { createHash } from "crypto"
export namespace Hash {
export function fast(input: string | Buffer): string {
return createHash("xxhash3-xxh64").update(input).digest("hex")
}
}