secure-random-bytes

5.0.1 • Public • Published

secure-random-bytes

Retrieve a secure random byte string of a specified length.

Example

var randomBytes = require('secure-random-bytes');

randomBytes(10);
// => 'ÊïÜsóÐ\u0006\u0016mÏ'

Installation

$ npm install secure-random-bytes

API

var randomBytes = require('secure-random-bytes');

randomBytes(length)

Returns a String (whose length is length) of random bytes.

Readme

Keywords

Package Sidebar

Install

npm i secure-random-bytes

Weekly Downloads

88

Version

5.0.1

License

MIT

Unpacked Size

3.06 kB

Total Files

4

Last publish

Collaborators

  • kenan