diff --git a/resources/static/shared/network.js b/resources/static/shared/network.js index 305084129c1311f78e7bedbfddf79af7b2805ba2..ac292824adc8f63b1e2f2c33ef8d317c4ba7a5fb 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, {