Files
evento/node_modules/uid/secure/index.d.ts
2026-03-18 14:55:56 -03:00

7 lines
271 B
TypeScript

/**
* Produce a cryptographically secure (CSPRNG) UID of desired length using the current environment's `crypto` module.
* @NOTE Relies on a hexadecimal alphabet (A-E, 0-9).
* @param {number} [length] Defaults to `11`
*/
export function uid(length?: number): string;