Skip to main content
Module

std/uuid/mod.ts>v1.V1Options

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

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.