Skip to content

UlidOptions

Defined in: src/ulid.ts:14

optional engine?: EngineLike

Defined in: src/ulid.ts:16

Draw from this engine instead of the CSPRNG. For deterministic tests.


optional monotonic?: boolean

Defined in: src/ulid.ts:20

Keep IDs increasing within one millisecond by incrementing the random field.


optional now?: number

Defined in: src/ulid.ts:18

Fix the timestamp, in milliseconds since the Unix epoch. For tests.