adamhalasz / uniqid

Unique ID Generator
https://adamhalasz.com
617 stars 49 forks source link

Collision issue #38

Open tnrich opened 3 years ago

tnrich commented 3 years ago

This package is NOT safe for use on the front end. The method being used to generate a unique id is VERY prone to collisions. This caused all kinds of weird flake in our system that took a significant amount of time to track down.

I would recommend using https://github.com/ai/nanoid/ instead (both for the front-end and the back-end)

adamhalasz commented 3 years ago

@tnrich can you give some examples of what kind of collisions have occured? Do you have reproductions steps?