rng.js 239 B

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