(input: string)
| 195 | } |
| 196 | |
| 197 | export function stableHash(input: string): number { |
| 198 | let hash = 0x811c9dc5; |
| 199 | for (let index = 0; index < input.length; index += 1) { |
| 200 | hash ^= input.charCodeAt(index); |
| 201 | hash = Math.imul(hash, 0x01000193); |
| 202 | } |
| 203 | return hash >>> 0; |
| 204 | } |
| 205 | |
| 206 | export function assignFilesToShards(files: string[], shardCount: number): string[][] { |
| 207 | if (!Number.isInteger(shardCount) || shardCount <= 0) { |
no outgoing calls
no test coverage detected