Skip to content
Snippets Groups Projects
Commit 9e3a52f1 authored by Albert's avatar Albert
Browse files

correct typo

parent 90473eeb
No related branches found
No related tags found
No related merge requests found
......@@ -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)});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment