Updated password generator function from scrutinizer report

This commit is contained in:
laf
2014-09-30 00:33:28 +01:00
parent 17a3689a78
commit af5e4e6483

View File

@@ -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;