* Creates a new random [[HDNodeWallet]] using the available * [cryptographic random source](randomBytes). * * If there is no crytographic random source, this will throw.
(provider)
| 127 | * If there is no crytographic random source, this will throw. |
| 128 | */ |
| 129 | static createRandom(provider) { |
| 130 | const wallet = hdwallet_js_1.HDNodeWallet.createRandom(); |
| 131 | if (provider) { |
| 132 | return wallet.connect(provider); |
| 133 | } |
| 134 | return wallet; |
| 135 | } |
| 136 | /** |
| 137 | * Creates a [[HDNodeWallet]] for %%phrase%%. |
| 138 | */ |
no test coverage detected