Files
cebol/lib/utils.ts
T
2024-04-13 16:04:32 +07:00

6 lines
140 B
TypeScript

import crypto from "node:crypto";
export const randomChars = (length = 8) => {
return crypto.randomBytes(length / 2).toString("hex");
};