mirror of
https://github.com/khairul169/cebol.git
synced 2025-04-28 16:49:35 +07:00
6 lines
140 B
TypeScript
6 lines
140 B
TypeScript
import crypto from "node:crypto";
|
|
|
|
export const randomChars = (length = 8) => {
|
|
return crypto.randomBytes(length / 2).toString("hex");
|
|
};
|