(id: string | number)
| 34 | } |
| 35 | /** Offset each edge deterministically so the graph does not flash in unison. */ |
| 36 | export function edgePhase(id: string | number): number { |
| 37 | let hash = 2166136261; |
| 38 | for (const character of String(id)) hash = Math.imul(hash ^ character.charCodeAt(0), 16777619) >>> 0; |
| 39 | return hash / 4294967296; |
| 40 | } |
no outgoing calls
no test coverage detected