UNPKG

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