From bda2749879a446d654cd6dc2cdb9b279fcbc0902 Mon Sep 17 00:00:00 2001 From: JonApps Date: Tue, 25 Mar 2014 02:23:31 +0100 Subject: [PATCH] oops :beer: --- lib/key_generators/phonetic.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/key_generators/phonetic.js b/lib/key_generators/phonetic.js index 3acfdfb..011900b 100644 --- a/lib/key_generators/phonetic.js +++ b/lib/key_generators/phonetic.js @@ -6,7 +6,7 @@ var PhoneticKeyGenerator = function(options) { // Generate a phonetic key PhoneticKeyGenerator.prototype.createKey = function(keyLength) { var text = ''; - var start = Math.round(Math.random() * 2); + var start = Math.round(Math.random()); for (var i = 0; i < keyLength; i++) { text += (i % 2 == start) ? this.randConsonant() : this.randVowel(); }