Browse Source

auto commit

tags/v1.0.1
yitter 4 years ago
parent
commit
7c5e04103d
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      README.md

+ 3
- 3
README.md View File

@@ -122,10 +122,10 @@ SeqBitLength = 6
## 💎 ID组成
* 本算法的ID由3部分组成(沿用雪花算法定义):
* +-------------------------+------------+---------+
* +-------------------------+-------------+----------+
* | 1.相对基础时间的时间差 | 2.WorkerId | 3.自增数 |
* +-------------------------+------------+---------+
* +-------------------------+--- 6 bits --+- 6 bits -+
* +-------------------------+-------------+----------+
* +-------------------------+--- 6 bits ---+- 6 bits --+
*
* 第1部分,时间差,是生成ID时的系统时间减去 BaseTime 的总时间差(毫秒单位)。
* 第2部分,WorkerId,是区分不同机器或不同应用的唯一ID,最大值由 WorkerIdBitLength(默认6)限定。


Loading…
Cancel
Save