Skip to content
Myr

Fix text

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Andrey Sitnik · committed by Andrey Sitnik · parent 11953b1 · Browse files · 1 file+4 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:README.md+4 added-3 removed
376 unmodified lines
377378### Custom Random Bytes Generator379380`customRandom` allows you to create a `nanoid` and replace alphabet381and the default random bytes generator. In this example,382a seed-based generator is used.381and the default random bytes generator.382383In this example, a seed-based generator is used:384385```js386import { customRandom } from 'nanoid'387388const rng = seedrandom(seed)
6 unmodified lines
395396`random` callback must accept the array size and return an array397with random numbers.398398If you want to use the same URL-friendly symbols with `nanoid3`,399If you want to use the same URL-friendly symbols with `customRandom`,400you can get the default alphabet using the `urlAlphabet`.401402```js403const { customRandom, urlAlphabet } = require('nanoid')
4 unmodified lines