diff --git a/resources/static/shared/network.js b/resources/static/shared/network.js index 847f487a923d39e0b54c225ec752c79384feb836..98d894b4e2dddddba088f37e8fed64934fce2961 100644 --- a/resources/static/shared/network.js +++ b/resources/static/shared/network.js @@ -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, {