Skip to content

The generated id is always even. #24

Description

@lzj960515

Hi, Thank your nodejs-snowflake, It's very good!

However, I found that most of the generated IDs are even numbers. Can you optimize this? For example, when the next millisecond arrives, set sequence to a random number between 1 and 3?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions