Waypoint towards trying to get Firefox communication with native code. Not currently...
[gssweb.git] / xpi / data / gssweb_utils.js
diff --git a/xpi/data/gssweb_utils.js b/xpi/data/gssweb_utils.js
new file mode 100644 (file)
index 0000000..87ea391
--- /dev/null
@@ -0,0 +1,10 @@
+console.log('Loading gssweb_utils.js - #1');
+
+navigator.generateNonce = function() {
+  // TODO: Make sure that we don't have a collision!
+  // Random integer in the range [0..(2^32-1)]
+  return Math.floor(Math.random() * ( 4294967295 )) ;
+}
+
+