botv12/util/usergen.js
2024-10-23 22:59:54 -04:00

4 lines
No EOL
216 B
JavaScript

import { randomBytes } from "crypto";
export default function generateUser (legal) {
return `${parseInt(randomBytes(4).toString("hex"),16).toString(36)}${parseInt(randomBytes(4).toString("hex"),16).toString(36)}`
}