Konrad Pabjan 948e5343c7
Revert "Update releases/v1 with changes from master (#67)" (#68)
This reverts commit bdd6409dc13e625e6c1c0ad857bd591804786f7b.
2020-03-09 10:51:55 +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);
};