UlidOptions
Defined in: src/ulid.ts:14
Properties
Section titled “Properties”engine?
Section titled “engine?”
optionalengine?:EngineLike
Defined in: src/ulid.ts:16
Draw from this engine instead of the CSPRNG. For deterministic tests.
monotonic?
Section titled “monotonic?”
optionalmonotonic?:boolean
Defined in: src/ulid.ts:20
Keep IDs increasing within one millisecond by incrementing the random field.
optionalnow?:number
Defined in: src/ulid.ts:18
Fix the timestamp, in milliseconds since the Unix epoch. For tests.