node_random_faker

fakes crypto.randomBytes

npm install node_random_faker
1 downloads in the last week
4 downloads in the last month

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>

npm loves you