Update username generator

This commit is contained in:
7cc5c4f330d47060 2024-10-20 14:46:39 -04:00
parent 88c049b24f
commit d5251ad3ee
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA

View file

@ -1,5 +1,5 @@
import { randomBytes } from "crypto";
const generateUser = function (legal) {
return `colon3_${parseInt(randomBytes(3).toString("hex"),16)}`
return `${parseInt(randomBytes(8).toString("hex"),36)}`
}
export { generateUser }