node/deps/npm/node_modules/uuid/lib/rng.js
Rebecca Turner f73bc91756 deps: upgrade npm to 4.1.1
PR-URL: https://github.com/nodejs/node/pull/10781
Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
2017-01-26 10:56:33 -05:00

11 lines
239 B
JavaScript

// Unique ID creation requires a high quality random # generator. In node.js
// this is prett straight-forward - we use the crypto API.
var rb = require('crypto').randomBytes;
function rng() {
return rb(16);
};
module.exports = rng;