Fix username generator
This commit is contained in:
parent
d5251ad3ee
commit
040bb752f1
1 changed files with 1 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
import { randomBytes } from "crypto";
|
||||
const generateUser = function (legal) {
|
||||
return `${parseInt(randomBytes(8).toString("hex"),36)}`
|
||||
return `${parseInt(randomBytes(4).toString("hex"),16).toString(36)}${parseInt(randomBytes(4).toString("hex"),16).toString(36)}`
|
||||
}
|
||||
export { generateUser }
|
Loading…
Add table
Reference in a new issue