snowflake icon indicating copy to clipboard operation
snowflake copied to clipboard

Modified the generated bitstring to conform to the specifications of snowflake

Open g-kenkun opened this issue 5 years ago • 0 comments

The ID that is finally generated is 64 bits, but the ID generated in the process is time stamp (41 bits) machine ID (12 bits) sequence (12 bits) = 63 bits, with a leading zero. :smile: (I don't know scala well, but when I look at the source code, it looks like this. )

g-kenkun avatar Nov 30 '19 07:11 g-kenkun