@neumatter/random-fill
v1.0.0
Published
Random Fill function. Works in node and browser.
Downloads
7
Maintainers
Readme
randomFill
Random Fill function. Works in nodejs and browser.
Table of Contents
Install
npm i @neumatter/random-fill
Usage
import randomFill from '@neumatter/random-fill'
const view = new Uint8Array(32)
randomFill(view)
// ...use view
import randomFill from '@neumatter/random-fill'
import ByteView from 'byteview'
const view = ByteView.alloc(32)
randomFill(view)
// ...use view
import randomFill from '@neumatter/random-fill'
const view = Buffer.allocUnsafe(32)
randomFill(view)
// ...use view
import randomFill from '@neumatter/random-fill'
const view = new Uint16Array(16)
randomFill(view)
// ...use view