botv12/util/usergen.js

4 lines
216 B
JavaScript
Raw Normal View History

import { randomBytes } from "crypto";
2024-10-23 22:59:54 -04:00
export default 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
}