-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
According to Wikipedia, Snowflake ID is consisted by 31 bits timestamp, 10 bits Instance ID and 12 bits Sequence number. But you have 12 bits Instance ID and 10 bits Sequence number in nodejs-snowflake. Is this intended?
Lines 18 to 24 in 9aa5cc7
| /// INSTANCE_ID_BITS is the total number of bits that | |
| /// are occupied by the node id | |
| const INSTANCE_ID_BITS: u64 = 12; | |
| /// SEQUENCE_BITS is the total number of bits that | |
| /// are occupied by the sequence ids | |
| const SEQUENCE_BITS: u64 = 10; |
Metadata
Metadata
Assignees
Labels
No labels