From 9e3a52f14a8e80441520933a7b654c86ed730da3 Mon Sep 17 00:00:00 2001 From: Albert Date: Mon, 11 Feb 2019 09:05:46 +0000 Subject: [PATCH] correct typo --- plugin/multiplex/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/multiplex/index.js b/plugin/multiplex/index.js index 4a4f3de6..f11639b6 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)}); });