dylang / shortid

Short id generator. Url-friendly. Non-predictable. Cluster-compatible.

Home Page:https://www.npmjs.org/package/shortid

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Effect of shortid.seed() method

alexVauch opened this issue · comments

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?

  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)