From ead64319972057f9f57b676a86f5a34259e40cb4 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 1 Aug 2024 19:50:46 -0600 Subject: [PATCH] Update index.html --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index fd9e71e..1504e9b 100644 --- a/index.html +++ b/index.html @@ -73,7 +73,7 @@ function generateToken(length) { const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; let result = ''; - for (let i = 0; i < length; i++) { + for (let i = 0; length > i; i++) { result += characters.charAt(Math.floor(Math.random() * characters.length)); } return result;