瀏覽代碼

fix: use sha1 for hash instead of unsupported xxhash3-xxh64

Dax Raad 1 月之前
父節點
當前提交
6733a5a822
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/opencode/src/util/hash.ts

+ 1 - 1
packages/opencode/src/util/hash.ts

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