mschuler / UniqueIdGenerator

C# implementation of Twitter's Snowflake

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Reduce number of ID Digits

hanslai opened this issue · comments

What is the best way to reduce the number of digits for the unique ID. Currently the result ID is often bigger than 2^53-1 or 9007199254740991, which make it impossible to work with JavaScript's number integer. Thanks.

I just realized it need to be 64 bit. So, I will just use string.