f4b6a3 / tsid-creator

A Java library for generating Time-Sorted Unique Identifiers (TSID).
MIT License
475 stars 50 forks source link

Increment the counter when the random function returns null or empty #13

Closed fabiolimace closed 2 years ago

fabiolimace commented 2 years ago

Currently, TsidFactory does not accept a random function that returns null. The random function is used to reset the counter when the millisecond changes. If this function returns null, an exception is thrown.

TsidFactory can ignore the null return and just increment the counter value.

fabiolimace commented 2 years ago

Released version v4.1.3.