node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

node_random_faker

Random Faker

Fakes crypto.randomBytes in NodeJS.

Usage

var faker = require('node_random_faker');
 
 
faker.fake(42);
console.log(crypto.randomBytes(4));
faker.restore();

Result will be <Buffer 2a 2a 2a 2a>