1
0
mirror of synced 2026-02-21 04:17:55 +08:00

auto commit

This commit is contained in:
yitter
2022-11-07 14:24:31 +08:00
parent 7bbc8a1531
commit 617459aeec
3 changed files with 3 additions and 3 deletions

View File

@@ -93,7 +93,7 @@ impl SnowWorkerM1 {
// 5.MaxSeqNumber
let mut maxSeqNumber = (1 << options.SeqBitLength) - 1;
if maxSeqNumber == 0 {
if options.maxSeqNumber <= 0 {
maxSeqNumber = 63;
}
if options.MaxSeqNumber < 0 || options.MaxSeqNumber > maxSeqNumber {