GenerateOptions
import { GenerateOptions } from "jsr:@ende/uuid/unstable-v6";interface ยท experimental
interface GenerateOptionsOptions for generate.
Properties
node
node?: number[]An array of 6 bytes that represents the node bits for the UUID.
If not set, a random value will be generated.
See also
clockseq
clockseq?: numberA 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).
If not set, a random value will be generated.
See also
msecs
msecs?: numberThe number of milliseconds since the Unix epoch (January 1, 1970).
See also
nsecs
nsecs?: numberThe number of nanoseconds to add to GenerateOptions.msecs
(0 - 10,000).
See also
random
random?: number[]An array of 8 random bytes (0 - 255) to be used for node and clock sequence bits (unless they are set).
rng
rng?: () => number[]A function that returns an array of 8 random bytes (0 - 255).
Alternative to GenerateOptions.random.