mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
improve snowflake number generating for package guid
This commit is contained in:
@ -15,6 +15,6 @@
|
||||
// Unique Number ID:
|
||||
// An Improved SnowFlake ID is inspired by Twitter's Snowflake, which is composed of:
|
||||
// 39 bits for time in units of 10 msec
|
||||
// 8 bits for a sequence number
|
||||
// 16 bits for a machine id
|
||||
// 8 bits for a sequence number.
|
||||
package guid
|
||||
|
||||
Reference in New Issue
Block a user