Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Effect of shortid.seed() method #141

Open
alexVauch opened this issue Jan 31, 2019 · 1 comment
Open

Effect of shortid.seed() method #141

alexVauch opened this issue Jan 31, 2019 · 1 comment

Comments

@alexVauch
Copy link

alexVauch commented Jan 31, 2019

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?

@ai
Copy link
Collaborator

ai commented Jan 31, 2019

  1. Short ID is deprecated. Use Nano ID https://github.com/ai/nanoid/
  2. If you want extra uniqness for users: user.id + ':' + nanoid(6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants