This commit is contained in:
Gavin McDonald
2025-04-12 15:17:02 -04:00
parent 1734eec436
commit 6508d40b2d
19 changed files with 1415 additions and 1344 deletions

View File

@@ -1,10 +1,9 @@
import getRandomItems from '@/tools/getRandomItems';
const alphabet =
'0123456789abcdefghijklmnopqrstuvwxyz';
const alphabet = '0123456789abcdefghijklmnopqrstuvwxyz';
const generateID = (length: number = 6) => {
return getRandomItems(alphabet.split(''), length).join('');
return getRandomItems(alphabet.split(''), length).join('');
};
export default generateID;