You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

8 lines
246 B

4 years ago
  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 crypto = require('crypto');
  4. module.exports = function nodeRNG() {
  5. return crypto.randomBytes(16);
  6. };