feat: some stuff
Some checks failed
Deploy to GitHub Pages / build_site (push) Failing after 1m21s

This commit is contained in:
2024-04-26 16:09:00 +02:00
parent cafe9bff84
commit 10e99754d0
6 changed files with 45 additions and 38 deletions

View File

@@ -83,8 +83,8 @@ function sha256(data?: string | Uint8Array) {
return { add, digest };
}
export function fastHashArray(arr: Int32Array): string {
return sha256(new Uint8Array(arr.buffer)).digest();
export function fastHashArrayBuffer(buffer: ArrayBuffer): string {
return sha256(new Uint8Array(buffer)).digest();
}
// Shamelessly copied from