Random Bytes function. Works in node and browser.
npm install @neumatter/random-bytesRandom Bytes function. Works in nodejs and browser.
``console`
npm i @neumatter/random-bytes
`js
import randomBytes from '@neumatter/random-bytes'
const byteView = randomBytes(32)
// ...use byteView
`
`js
import randomBytes from '@neumatter/random-bytes'
randomBytes(32, (err, byteView) => {
if (err) {
console.error(err)
} else {
// ...use byteView
}
})
``