UNPKG

simple-random

Version:

A simple flexible javascript library that creates random alpha-numeric strings. Works in both NodeJS and the browser.

5 lines (4 loc) 140 B
var crypto = require('crypto'); module.exports.getRandomBytes = function getRandomBytes(length) { return crypto.randomBytes(length); };