Albert %!s(int64=5) %!d(string=hai) anos
pai
achega
9e3a52f14a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      plugin/multiplex/index.js

+ 1 - 1
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)});
 });