Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/uuid/mod.ts>v1.V1Options

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
interface v1.V1Options
import { type v1 } from "https://deno.land/std@0.220.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.