Fix for undefined in ids, closes #130

This commit is contained in:
Kasper Rynning-Tønnesen
2015-08-03 12:23:36 +02:00
parent 0bf93e9764
commit 766f09e3ef

View File

@@ -750,7 +750,7 @@ function rndName(seed, len) {
if (is_vowel) arr = vowels
else arr = consts
is_vowel = !is_vowel;
word += arr[(seed[i%seed.length].charCodeAt()+i) % arr.length-1];
word += arr[(seed[i%seed.length].charCodeAt()+i) % (arr.length-1)];
}
return word
}