1

I am using the node js library uuid-int to generate unique id.

const id = 0;
const generator = UUID(id);
const uuid = generator.uuid(); // e.g. 3425779734788360

However I want to reduce the length of the number while making sure it is still unique.

Any idea ?

John doe
  • 3,680
  • 7
  • 31
  • 65

1 Answers1

2

Just use another library e.g. https://shortunique.id

Arnon Rotem-Gal-Oz
  • 25,469
  • 3
  • 45
  • 68