mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-04-01 06:42:26 +00:00
refactor: replace Bun.hash with Hash.fast using xxhash3-xxh64
This commit is contained in:
7
packages/opencode/src/util/hash.ts
Normal file
7
packages/opencode/src/util/hash.ts
Normal 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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user