Version 1
[yaffs-website] / node_modules / phantomjs-prebuilt / node_modules / uuid / lib / rng.js
diff --git a/node_modules/phantomjs-prebuilt/node_modules/uuid/lib/rng.js b/node_modules/phantomjs-prebuilt/node_modules/uuid/lib/rng.js
new file mode 100644 (file)
index 0000000..5624d91
--- /dev/null
@@ -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;