1
0
Fork 0
mirror of https://github.com/SunRed/haste-server.git synced 2024-12-27 22:50:11 +01:00

Added missing )

This commit is contained in:
Klas af Geijerstam 2017-06-26 17:42:24 +02:00 committed by GitHub
parent dbf4f6b5dd
commit ac2bceefbb

View file

@ -24,7 +24,7 @@ var DictionaryGenerator = function(options) {
DictionaryGenerator.prototype.createKey = function(keyLength) {
var text = '';
for(var i = 0; i < keyLength; i++)
text += this.dictionary[Math.floor(Math.random()*this.dictionary.length];
text += this.dictionary[Math.floor(Math.random()*this.dictionary.length)];
return text;
};