()
| 159 | |
| 160 | /** A short random handle suffix (`x7k2`): ~1M combinations per base. */ |
| 161 | const discriminator = (): string => { |
| 162 | let out = ""; |
| 163 | for (let i = 0; i < DISCRIMINATOR_LENGTH; i++) { |
| 164 | out += DISCRIMINATOR_ALPHABET[Math.floor(Math.random() * DISCRIMINATOR_ALPHABET.length)]!; |
| 165 | } |
| 166 | return out; |
| 167 | }; |
| 168 | |
| 169 | /** |
| 170 | * Mint a unique slug for an org name: try the clean derivation, then |