ft_transcendence/pong/node_modules/uid/secure/index.d.ts
2023-05-02 19:15:50 +02: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;