summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/request/node_modules/uuid/lib/rng.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/npm/node_modules/request/node_modules/uuid/lib/rng.js')
-rw-r--r--deps/npm/node_modules/request/node_modules/uuid/lib/rng.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/deps/npm/node_modules/request/node_modules/uuid/lib/rng.js b/deps/npm/node_modules/request/node_modules/uuid/lib/rng.js
new file mode 100644
index 0000000000..5624d9123b
--- /dev/null
+++ b/deps/npm/node_modules/request/node_modules/uuid/lib/rng.js
@@ -0,0 +1,10 @@
+// Unique ID creation requires a high quality random # generator. In node.js
+// this is prett straight-forward - we use the crypto API.
+
+var rb = require('crypto').randomBytes;
+
+function rng() {
+ return rb(16);
+};
+
+module.exports = rng;