Skip to content
Snippets Groups Projects
Commit b2d9db8b authored by Ben Adida's avatar Ben Adida Committed by Lloyd Hilaiel
Browse files

mix in the server seed into the client entropy pool, fixes #298

parent 41c2207c
No related branches found
No related tags found
No related merge requests found
......@@ -132,6 +132,11 @@ BrowserID.Network = (function() {
// XXX remove the ABC123
code_version = result.code_version || "ABC123";
// seed the PRNG
// FIXME: properly abstract this out, probably by exposing a jwcrypto
// interface for randomness
require("./libs/all").sjcl.random.addEntropy(result.random_seed);
_.defer(cb);
},
error: deferResponse(xhrError(onFailure, {
......
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