Skip to main content
Module

x/ui7/mod.ts>random

Generate UUIDv7 identifiers in JavaScript (or TypeScript)
Latest
variable random
import { random } from "https://deno.land/x/ui7@v0.2.3/mod.ts";

Fill the UUID's rand fields with random bits, using getRandomValues. UUID's produced with this randomness source are not monotonic; ID's produced within the same millisecond will not necessarily be sortable in the order they were produced.