Skip to main content
Module

std/uuid/v1.ts>V1Options

The Deno Standard Library
Latest
interface V1Options
import { type V1Options } from "https://deno.land/std@0.222.1/uuid/v1.ts";

The options used for generating a v1 UUID in generate.

Properties

optional
node: number[]

An array of 6 bytes that represents a 48-bit IEEE 802 MAC address.

optional
clockseq: number

A 14-bit value used to avoid duplicates that could arise when the clock is set backwards in time or if the node ID changes (0 - 16383).

optional
msecs: number

The number of milliseconds since the Unix epoch (January 1, 1970).

optional
nsecs: number

The number of nanoseconds to add to V1Options.msecs (0 - 10,000).

optional
random: number[]

An array of 16 random bytes (0 - 255).

optional
rng: () => number[]

A function that returns an array of 16 random bytes (0 - 255). Alternative to V1Options.random.