From ac2bceefbb5b37565f012acb23ca991c31eaa662 Mon Sep 17 00:00:00 2001 From: Klas af Geijerstam Date: Mon, 26 Jun 2017 17:42:24 +0200 Subject: [PATCH] Added missing ) --- lib/key_generators/dictionary.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/key_generators/dictionary.js b/lib/key_generators/dictionary.js index 6bc6c2e..ad40b9a 100644 --- a/lib/key_generators/dictionary.js +++ b/lib/key_generators/dictionary.js @@ -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; };