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

upgraded jwcrypto and start mixing in server-side entropy

parent d3b9a1f5
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,8 @@
BrowserID.Network = (function() {
"use strict";
var bid = BrowserID,
var jwcrypto = require("./lib/jwcrypto"),
bid = BrowserID,
complete = bid.Helpers.complete,
context,
server_time,
......@@ -45,10 +46,7 @@ BrowserID.Network = (function() {
setUserID(result.userid);
// 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);
// FIXME: this wasn't doing anything for real, so commenting this out for now
jwcrypto.addEntropy(result.random_seed);
}
function withContext(cb, 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