mirror of
https://github.com/SunRed/haste-server.git
synced 2024-11-01 01:30:21 +01:00
oops 🍺
This commit is contained in:
parent
028aa96b13
commit
bda2749879
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ var PhoneticKeyGenerator = function(options) {
|
||||||
// Generate a phonetic key
|
// Generate a phonetic key
|
||||||
PhoneticKeyGenerator.prototype.createKey = function(keyLength) {
|
PhoneticKeyGenerator.prototype.createKey = function(keyLength) {
|
||||||
var text = '';
|
var text = '';
|
||||||
var start = Math.round(Math.random() * 2);
|
var start = Math.round(Math.random());
|
||||||
for (var i = 0; i < keyLength; i++) {
|
for (var i = 0; i < keyLength; i++) {
|
||||||
text += (i % 2 == start) ? this.randConsonant() : this.randVowel();
|
text += (i % 2 == start) ? this.randConsonant() : this.randVowel();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue