From e6782f456305c3028f3adf53227c98f3f29a0138 Mon Sep 17 00:00:00 2001 From: Matthew Fettig Date: Mon, 23 Jun 2014 11:30:06 -0700 Subject: [PATCH] [FIX] vault client: set SJCL test entropy random string to base64 --- test/vault-test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/vault-test.js b/test/vault-test.js index 737c4a97..c064b31d 100644 --- a/test/vault-test.js +++ b/test/vault-test.js @@ -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;