Changelog
v2.3.2 - 2023-03-19
generateNoRewind()
and generateCoreNoRewind()
to Scru128Generator
(experimental)Changelog
v2.3.1 - 2023-02-18
Scru128Id#bytes
, Scru128Id.ofInner()
, and Scru128Id.fromBytes()
Changelog
v2.2.1 - 2023-01-31
node16
module setting to build CommonJS entry pointChangelog
v2.2.0 - 2022-12-25
Scru128Generator
to make it work as
infinite iteratorChangelog
v2.1.2 - 2022-06-11
generateCore()
to update counter_hi
when timestamp
passed < 1000Changelog
v2.1.1 - 2022-05-23
generateCore()
to reject zero as timestamp
valueChangelog
v2.1.0 - 2022-05-22
generateCore()
and getLastStatus()
to Scru128Generator
Changelog
v2.0.0 - 2022-05-01
timestamp
: 44 bits, counter
: 28 bits, per_sec_random
:
24 bits, per_gen_random
: 32 bits } -> { timestamp
: 48 bits, counter_hi
:
24 bits, counter_lo
: 24 bits, entropy
: 32 bits }setLogger()
as counter overflow is no longer likely to occurTIMESTAMP_BIAS
Scru128Id#counter
, Scru128Id#perSecRandom
, Scru128Id#perGenRandom
Scru128Id#counterHi
, Scru128Id#counterLo
, Scru128Id#entropy