Skip to content

Commit

Permalink
refactor(ident): This update contains some major changes
Browse files Browse the repository at this point in the history
Separate subprojects
Single registration at import
Only one ID generator can be registered at a time
  • Loading branch information
godcong committed Jul 11, 2024
1 parent 4876990 commit 1b58298
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ident/snowflake/snowflake.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

// nodeNumber range from 0 to 1023 is used for generating unique node ID.
var (
nodeNumber = rand.Int63n(1023)
nodeNumber = rand.Int64N(1023)
bitSize = 0 // bitSize is used to store the length of generated ID.
)

Expand Down

0 comments on commit 1b58298

Please sign in to comment.