Narcoleptic Pony Machine
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

randombytes

2.1.0 • Public • Published

randombytes

Version Build Status

randombytes from node that works in the browser. In node you just get crypto.randomBytes, but in the browser it uses .crypto/msCrypto.getRandomValues

var randomBytes = require('randombytes');
randomBytes(16);//get 16 random bytes
randomBytes(16, function (err, resp) {
  // resp is 16 random bytes
});

Keywords

install

npm i randombytes

Downloadsweekly downloads

4,463,858

version

2.1.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability