From af5e4e6483386f382cff78be01362edcbfc7bdcc Mon Sep 17 00:00:00 2001 From: laf Date: Tue, 30 Sep 2014 00:33:28 +0100 Subject: [PATCH] Updated password generator function from scrutinizer report --- html/js/custom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/js/custom.js b/html/js/custom.js index c25311b72..15abe0b54 100644 --- a/html/js/custom.js +++ b/html/js/custom.js @@ -3,8 +3,8 @@ $.extend({ var iteration = 0; var password = ""; var randomNumber; - if(special == undefined){ - var special = false; + if(special === undefined){ + special = false; } while(iteration < length){ randomNumber = (Math.floor((Math.random() * 100)) % 94) + 33;