Skip to content

Commit

Permalink
fix(web): Use unique names generator for random usernames
Browse files Browse the repository at this point in the history
  • Loading branch information
munshkr committed Jan 13, 2024
1 parent 0ce0428 commit 0520bca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/web/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ export function generateRandomSessionName() {
}

export function generateRandomUserName() {
return `Anonymous-${Math.floor(Math.random() * 100000)}`;
return uniqueNamesGenerator({
dictionaries: [colors, animals],
separator: "-",
});
}

export const store = {
Expand Down

0 comments on commit 0520bca

Please sign in to comment.