botv12/util/usergen.js

4 lines
No EOL
208 B
JavaScript

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