Portfolio/node_modules/uuid/lib/rng.js
oitsjustjose 4e066bffc9 Init
2017-02-25 03:50:31 -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;