(content: string)
| 16 | } |
| 17 | |
| 18 | export 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 | } |
no outgoing calls
no test coverage detected