aboutsummaryrefslogtreecommitdiff
path: root/plugin/multiplex
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/multiplex')
-rw-r--r--plugin/multiplex/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/multiplex/index.js b/plugin/multiplex/index.js
index 4a4f3de..f11639b 100644
--- a/plugin/multiplex/index.js
+++ b/plugin/multiplex/index.js
@@ -45,7 +45,7 @@ app.get("/", function(req, res) {
app.get("/token", function(req,res) {
var ts = new Date().getTime();
var rand = new Uint32Array(1);
- window.crypto.getRandomValues(array)
+ window.crypto.getRandomValues(rand)
var secret = ts.toString() + rand.toString();
res.send({secret: secret, socketId: createHash(secret)});
});