botv12/util/usergen.js

4 lines
208 B
JavaScript
Raw Normal View History

import { randomBytes } from "crypto";
2024-10-23 22:51:35 -04:00
export function generateUser (legal) {
2024-10-20 14:51:31 -04:00
return `${parseInt(randomBytes(4).toString("hex"),16).toString(36)}${parseInt(randomBytes(4).toString("hex"),16).toString(36)}`
2024-10-23 22:51:35 -04:00
}