Skip to main content
webcrypto.Crypto.randomUUID - crypto - Node documentation
method webcrypto.Crypto.randomUUID

Usage in Deno

import { type webcrypto } from "node:crypto";
Crypto.randomUUID(): UUID

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

Return Type