[FIX] vault client: set SJCL test entropy random string to base64

This commit is contained in:
Matthew Fettig
2014-06-23 11:30:06 -07:00
parent 1b2b19381b
commit e6782f4563

View File

@@ -113,7 +113,7 @@ var blob = new Blob();
//must be set for self signed certs
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';
while(!sjcl.random.isReady()) {
sjcl.random.addEntropy(require('crypto').randomBytes(128).toString()); //add entropy to seed the generator
sjcl.random.addEntropy(require('crypto').randomBytes(128).toString('base64')); //add entropy to seed the generator
}
var mockRippleTxt;