Mods/node_modules/uuid/lib/rng.js
oitsjustjose 6b60015c02 --
2017-02-26 17:06:42 -05:00

10 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;