From 95fec49932be4e54f39740cb0881ff3a6ec453f7 Mon Sep 17 00:00:00 2001 From: zennermac <38428285+zennermac@users.noreply.github.com> Date: Tue, 26 Feb 2019 11:21:04 +0000 Subject: [PATCH] removed legacy seed generation --- src/containers/SetupPage.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/containers/SetupPage.js b/src/containers/SetupPage.js index 779322e..29d1c75 100755 --- a/src/containers/SetupPage.js +++ b/src/containers/SetupPage.js @@ -34,31 +34,6 @@ class SetupPage extends React.Component { handleNewWallet () { var seed = new Mnemonic(Mnemonic.Words.ENGLISH) this.handleLoadWallet(seed.toString()) -/* - // generate random phrase - var randomPhrase = [] - - // Want 9 words - while (randomPhrase.length < 9) { - // Noun/Nouns - if (Math.random() > 0.5) { - // Noun - if (Math.random() > 0.5) { - randomPhrase = randomPhrase.concat(Sentencer.make('{{ noun }}')) - } else { - // Nouns - randomPhrase = randomPhrase.concat(Sentencer.make('{{ nouns }}')) - } - } else { - // Adjective - randomPhrase = randomPhrase.concat(Sentencer.make('{{ adjective }}')) - } - } - - randomPhrase = randomPhrase.join(' ') - - this.handleLoadWallet(randomPhrase) -*/ } handleLoadWallet (phrase) {