Skip to content

Commit 5ab6147

Browse files
committed
fix: random character order
1 parent 0b15e51 commit 5ab6147

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @returns {string}
66
*/
77
export function randomId(length: number): string {
8-
const characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
8+
const characters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
99
return Array.from({ length }, () =>
1010
characters.charAt(Math.floor(Math.random() * characters.length))
1111
).join("");

0 commit comments

Comments
 (0)