Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Rename random to randomBytes #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions source/ethers.js/source/cookbook-accounts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -170,15 +170,15 @@ a method that correctly encodes this checksum.
.. code-block:: javascript
:caption: *More Complex Random Mnemonic*

const utils = require('ethers/utils');
const ethers = require('ethers');

// Chose the length of your mnemonic:
// - 16 bytes => 12 words (* this example)
// - 20 bytes => 15 words
// - 24 bytes => 18 words
// - 28 bytes => 21 words
// - 32 bytes => 24 words
let bytes = ethers.utils.random(16);
let bytes = ethers.utils.randomBytes(16);

// Select the language:
// - en, es, fr, ja, ko, it, zh_ch, zh_tw
Expand Down