mosca icon indicating copy to clipboard operation
mosca copied to clipboard

Replace shortid with nanoid

Open vrizo opened this issue 7 years ago • 0 comments

Hi!

Please consider replacing shortid with nanoid. There are no significant changes for users, but there are some critical benefits:

  • shortid is not maintained anymore (and issue tracker has many important issues);
  • shortid has a problem with a random generator (issue) and ID uniformity (issue). nanoid uses hardware random generator and has special uniformity tests (docs);
  • shortid has a problem with - symbol at the end of URL on some Android apps (issue). nanoid uses safe ~ instead of -;
  • And finally, nanoid is 10x times faster than shortid.

What do you think about this, @mcollina?

Thanks!

vrizo avatar Oct 15 '17 16:10 vrizo