This action will force synchronization from yitter/多语言新雪花算法(SnowFlake IdGenerator), which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
import timeclass IdGeneratorOptions(object):def __init__(self, workerId = 0, workerIdBitLength = 6, seqBitLength = 6):# 雪花计算方法,(1-漂移算法|2-传统算法),默认1。目前只实现了1。self.Method = 1# 基础时间(ms单位),不能超过当前系统时间self.BaseTime = 1288834974657# 机器码,必须由外部设定,最大值 2^WorkerIdBitLength-1self.WorkerId = workerId# 机器码位长,默认值6,取值范围 [1, 15](要求:序列数位长+机器码位长不超过22)self.WorkerIdBitLength = workerIdBitLength# 序列数位长,默认值6,取值范围 [3, 21](要求:序列数位长+机器码位长不超过22)self.SeqBitLength = seqBitLength# 最大序列数(含),设置范围 [MinSeqNumber, 2^SeqBitLength-1],默认值0,表示最大序列数取最大值(2^SeqBitLength-1])self.MaxSeqNumber = 0# 最小序列数(含),默认值5,取值范围 [5, MaxSeqNumber],每毫秒的前5个序列数对应编号0-4是保留位,其中1-4是时间回拨相应预留位,0是手工新值预留位self.MinSeqNumber = 5# 最大漂移次数(含),默认2000,推荐范围500-10000(与计算能力有关)self.TopOverCostCount = 2000
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。