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))