Effect of shortid.seed() method
alexVauch opened this issue · comments
Alexy Vauch! commented
Can anyone explain what effect does the call of shortid.seed()
function have? I didn't find any influence of it on result of shortid.generate()
. The same alphabet with same order of letters.
The main reason why i try to use it - i want to have extra uniqness for each app user.
Is it way to go?
Andrey Sitnik commented
- Short ID is deprecated. Use Nano ID https://github.com/ai/nanoid/
- If you want extra uniqness for users:
user.id + ':' + nanoid(6)