UNPKG

entropy-string

Version:

Efficiently generate cryptographically strong random strings of specified entropy from various character sets.

6 lines (4 loc) 118 B
const csprngBytes = count => window.crypto.getRandomValues(new Uint8Array(count)) module.exports = { csprngBytes }