Skip to content

Documents for @litert/uuid / SnowflakeSI / DEFAULT_MACHINE_ID_BIT_WIDTH

Variable: DEFAULT_MACHINE_ID_BIT_WIDTH

const DEFAULT_MACHINE_ID_BIT_WIDTH: 5 = 5

Defined in: SnowflakeSI.ts:36

The default bit width of the machine ID is 5 bits, which means the range of the machine ID is [0, 31].

So the default capacity of snowflake-si ID is 2^7 = 128, per millisecond.