ai-clip-factory / src /lib /getRandomChallengeId.ts
jbilcke-hf's picture
jbilcke-hf HF staff
initial commit
9a42933
raw
history blame
232 Bytes
import { customAlphabet } from "nanoid"
const nanoid = customAlphabet([
'1234567890',
'abcdefghijklmnopqrstuvwxyz',
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
].join(''), 16)
export function getRandomChallengeId() {
return nanoid()
}