Konrad Pabjan 39f340c482 Revert "Update releases/v1 with changes from master (#67)"
This reverts commit bdd6409dc13e625e6c1c0ad857bd591804786f7b.
2020-03-09 10:49:58 +01:00

9 lines
246 B
JavaScript

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