Skip to content

ReverseTimestampOptions

ReverseTimestampOptions = object

Defined in: src/codecs/reverse/index.ts:18

Configuration options for a Reverse Timestamp codec instance.

optional allowDuplicateBrand?: boolean

Defined in: src/codecs/reverse/index.ts:24

If true, silences the duplicate-brand warning in non-production environments.


optional now?: () => number

Defined in: src/codecs/reverse/index.ts:20

Returns the current timestamp in milliseconds. Defaults to Date.now.

number


optional rng?: (target) => void

Defined in: src/codecs/reverse/index.ts:22

Writes the 10-byte random tail into target. Defaults to a crypto.randomUUID harvest fast path (same as the Timestamp codec).

Uint8Array

void