Skip to content
This repository was archived by the owner on Mar 27, 2024. It is now read-only.
This repository was archived by the owner on Mar 27, 2024. It is now read-only.

Throw Exception when too many ids are generated in the same millisecond #7

@ssippe

Description

@ssippe

Firstly, thanks for putting this library together.

Based on my reading of the code (not testing), I think that it should throw an exception if AddOne is not able to increment anything here

The spec states "If, in the extremely unlikely event that, you manage to generate more than 280 ULIDs within the same millisecond, or cause the random component to overflow with less, the generation will fail.".

PR here #8

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