(seed, modulo)
| 2058 | } |
| 2059 | |
| 2060 | function stableModuloLocal(seed, modulo) { |
| 2061 | let hash = 0; |
| 2062 | for (const char of String(seed || "")) { |
| 2063 | hash = (hash * 31 + char.codePointAt(0)) >>> 0; |
| 2064 | } |
| 2065 | return modulo > 0 ? hash % modulo : 0; |
| 2066 | } |
| 2067 | |
| 2068 | async function buildWebLookupContext(event) { |
| 2069 | const text = stripMentionText(event.text); |
no outgoing calls
no test coverage detected