Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarBasem committed Feb 19, 2024
1 parent 2d91cba commit fc434d4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mobile/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -1328,12 +1328,12 @@ func InitLogging(logSettingsJSON string) string {
return makeJSONResponse(err)
}

func GetRandomMnemonic() (string, error) {
func GetRandomMnemonic() string {
// generate mnemonic phrase
mn := extkeys.NewMnemonic()
mnemonic, err := mn.MnemonicPhrase(extkeys.EntropyStrength128, extkeys.EnglishLanguage)
if err != nil {
return "", fmt.Errorf("can not create mnemonic seed: %v", err)
return makeJSONResponse(err)
}
return mnemonic, nil
return mnemonic
}

0 comments on commit fc434d4

Please sign in to comment.