Files
2022-09-20 03:10:03 +03:00

5 lines
117 B
JavaScript

import crypto from "crypto";
export const randomId = (length = 16) =>
crypto.randomBytes(length).toString("hex");