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