diff options
Diffstat (limited to 'node_modules/uuid/lib/rng.js')
-rw-r--r-- | node_modules/uuid/lib/rng.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/node_modules/uuid/lib/rng.js b/node_modules/uuid/lib/rng.js new file mode 100644 index 0000000..58f0dc9 --- /dev/null +++ b/node_modules/uuid/lib/rng.js @@ -0,0 +1,8 @@ +// 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); +}; |