blob: 58f0dc9cfb677c4eb388fd4ed843a0f5194e81a8 [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001// Unique ID creation requires a high quality random # generator. In node.js
2// this is pretty straight-forward - we use the crypto API.
3
4var crypto = require('crypto');
5
6module.exports = function nodeRNG() {
7 return crypto.randomBytes(16);
8};