Skip to main content
randomUUID - crypto - Node documentation
function randomUUID

Usage in Deno

import { randomUUID } from "node:crypto";
randomUUID(options?: RandomUUIDOptions): UUID

Generates a random RFC 4122 version 4 UUID. The UUID is generated using a cryptographic pseudorandom number generator.

Parameters

optional
options: RandomUUIDOptions

Return Type