Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
removed legacy seed generation
Browse files Browse the repository at this point in the history
  • Loading branch information
zennermac authored Feb 26, 2019
1 parent 3bb39dd commit 95fec49
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/containers/SetupPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 95fec49

Please sign in to comment.