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 @@ ...@@ -6,7 +6,8 @@
BrowserID.Network = (function() { BrowserID.Network = (function() {
"use strict"; "use strict";
var bid = BrowserID, var jwcrypto = require("./lib/jwcrypto"),
bid = BrowserID,
complete = bid.Helpers.complete, complete = bid.Helpers.complete,
context, context,
server_time, server_time,
...@@ -45,10 +46,7 @@ BrowserID.Network = (function() { ...@@ -45,10 +46,7 @@ BrowserID.Network = (function() {
setUserID(result.userid); setUserID(result.userid);
// seed the PRNG // seed the PRNG
// FIXME: properly abstract this out, probably by exposing a jwcrypto jwcrypto.addEntropy(result.random_seed);
// 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
} }
function withContext(cb, onFailure) { 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