1
0
Fork 0
mirror of https://github.com/seejohnrun/haste-server.git synced 2024-11-25 05:51:22 +00:00

oops 🍺

This commit is contained in:
JonApps 2014-03-25 02:23:31 +01:00
parent 028aa96b13
commit bda2749879

View file

@ -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();
}