From 4916d0384274fb248735ec4c0ca85c1f025741c7 Mon Sep 17 00:00:00 2001 From: Synox Date: Thu, 7 Jul 2016 21:27:58 +0200 Subject: [PATCH] simpler names --- src/app/mailbox/service/mailbox.service.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/app/mailbox/service/mailbox.service.js b/src/app/mailbox/service/mailbox.service.js index 292bc1c..52322c6 100644 --- a/src/app/mailbox/service/mailbox.service.js +++ b/src/app/mailbox/service/mailbox.service.js @@ -37,16 +37,7 @@ class MailboxService { } generateRandomUsername() { - let username = ''; - - phonetic.generate({syllables: 3}); - - if (Math.random() >= 0.5) { - username += phonetic.generate({syllables: 3}); - } else { - username += phonetic.generate({syllables: 2}); - username += phonetic.generate({syllables: 2}); - } + let username = phonetic.generate({syllables: 3, phoneticSimplicity: 1}); if (Math.random() >= 0.5) { username += this.getRandomInt(30, 99); }