pseudorandombytes
v2.0.0
Published
pseudoRandomBytes ===
Downloads
112
Readme
pseudoRandomBytes
crypto.pseudoRandomBytes but for use with browserify. In node it just returns crypto.pseudoRandomBytes but in the browser it uses crypto-browserify/randombytes if available else it seeds a prng based on chacha20poly1305.
To use:
var pseudoRandomBytes = require('pseudorandomBbytes');
var bytes = pseudoRandomBytes(34);
To be clear there is no legitimate reason for you ever to want to use this.