Skip to content

Commit

Permalink
fix: random character order
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeocodes committed May 5, 2024
1 parent 0b15e51 commit 5ab6147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @returns {string}
*/
export function randomId(length: number): string {
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
const characters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
return Array.from({ length }, () =>
characters.charAt(Math.floor(Math.random() * characters.length))
).join("");
Expand Down

1 comment on commit 5ab6147

@vercel
Copy link

@vercel vercel bot commented on 5ab6147 May 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.