Skip to content

uuid1

uuid1(node?: bigint, clockSeq?: number): UUID

Defined in: packages/pythonlib/src/uuid.ts:242

Generate a UUID based on host ID and current time (version 1).

Note: In browser environments, the node ID is randomly generated since MAC addresses are not accessible.

Parameters

ParameterTypeDescription
node?bigintOptional 48-bit node ID (defaults to random)
clockSeq?numberOptional 14-bit clock sequence (defaults to random)

Returns

UUID

A new time-based UUID