You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting this, seems like an issue with how js is dealing with large numbers.
I believe it would be better to simplify the snowflake generation part, will fix this.
Hello,
The project description says that we are generating 64-bit IDs but I am getting numbers far beyond what I thought 64-bit limits allow.
The unsigned 64-bit integer range should be: 0 - max.
((2^64) - 1 ) = 18446744073709551615
For signed it should be -max to max.
((2^63) -1) = 9223372036854775807
The the readme.md the sample code generates ID = 14755887168818983731200. From a test I ran, I generated 1832785790032599770841743360.
This numbers generated from this lib don't fit into a 64-bit number range. How can this project be used to generate 64-bit Ids?
The text was updated successfully, but these errors were encountered: