UNPKG

@e280/authlocal

Version:

User-sovereign login system for everybody

10 lines 313 B
export function randomDigits(count) { const digits = [..."1234567890"]; const array = []; for (const _ of Array(count)) { const index = Math.floor(Math.random() * digits.length); array.push(digits.at(index)); } return array.join(""); } //# sourceMappingURL=random-digits.js.map