MCPcopy Create free account
hub / github.com/arctic-cli/interface / checksum

Function checksum

packages/util/src/encode.ts:18–25  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

16}
17
18export function checksum(content: string): string {
19 let hash = 0x811c9dc5
20 for (let i = 0; i < content.length; i++) {
21 hash ^= content.charCodeAt(i)
22 hash = Math.imul(hash, 0x01000193)
23 }
24 return (hash >>> 0).toString(36)
25}

Callers 2

SessionTurnFunction · 0.90
SessionReviewFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected