File size: 232 Bytes
9a42933 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import { customAlphabet } from "nanoid"
const nanoid = customAlphabet([
'1234567890',
'abcdefghijklmnopqrstuvwxyz',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
].join(''), 16)
export function getRandomChallengeId() {
return nanoid()
}
|