From 7b35b0f6e429cc829bc2da495e6ea999a77206d5 Mon Sep 17 00:00:00 2001 From: RickyYoder Date: Wed, 31 Jan 2018 10:35:13 -0800 Subject: [PATCH] Changing For Loop to Iterate 150 Times Matching expected ieration count, and simplifying urlString declaration. --- src/tool.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tool.js b/src/tool.js index 0997882..e638053 100644 --- a/src/tool.js +++ b/src/tool.js @@ -1,8 +1,8 @@ exports.genURL = (urlLength) => { - var urlString = ""; + var urlString; const sourceLetters = "ABCDEFGHJKMNPQRSTUVWXYZabcdefghjkmnpqrstuvwxyz23456789"; - for(var genLoopIndex = 0; genLoopIndex < 50; genLoopIndex++){ + for(var genLoopIndex = 0; genLoopIndex < 150; genLoopIndex++){ // Add a random letter to the urlString urlString += sourceLetters.charAt(Math.random() * (sourceLetters.length - 1))