From 67263a05a693df84fd72d6022f127c3cbf831884 Mon Sep 17 00:00:00 2001 From: Giulio Cesare Solaroli Date: Fri, 13 Feb 2015 17:02:16 +0100 Subject: [PATCH] Unified PRNG setup across all application versions --- frontend/beta/js/Clipperz/Crypto/PRNG.js | 4 ++-- frontend/delta/js/Clipperz/Crypto/PRNG.js | 2 +- frontend/gamma/js/Clipperz/Crypto/PRNG.js | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/beta/js/Clipperz/Crypto/PRNG.js b/frontend/beta/js/Clipperz/Crypto/PRNG.js index 92966d0..6fdeca4 100644 --- a/frontend/beta/js/Clipperz/Crypto/PRNG.js +++ b/frontend/beta/js/Clipperz/Crypto/PRNG.js @@ -316,9 +316,9 @@ Clipperz.Crypto.PRNG.CryptoRandomRandomnessSource.prototype = MochiKit.Base.upda var bytesToCollect; if (this.boostMode() == true) { - bytesToCollect = 8; + bytesToCollect = 64; } else { - bytesToCollect = 32; + bytesToCollect = 8; } var randomValuesArray = new Uint8Array(bytesToCollect); diff --git a/frontend/delta/js/Clipperz/Crypto/PRNG.js b/frontend/delta/js/Clipperz/Crypto/PRNG.js index b6a0567..4a9409f 100644 --- a/frontend/delta/js/Clipperz/Crypto/PRNG.js +++ b/frontend/delta/js/Clipperz/Crypto/PRNG.js @@ -318,7 +318,7 @@ Clipperz.Crypto.PRNG.CryptoRandomRandomnessSource.prototype = MochiKit.Base.upda var bytesToCollect; if (this.boostMode() == true) { - bytesToCollect = 256; + bytesToCollect = 64; } else { bytesToCollect = 8; } diff --git a/frontend/gamma/js/Clipperz/Crypto/PRNG.js b/frontend/gamma/js/Clipperz/Crypto/PRNG.js index 7885429..80d972f 100644 --- a/frontend/gamma/js/Clipperz/Crypto/PRNG.js +++ b/frontend/gamma/js/Clipperz/Crypto/PRNG.js @@ -318,9 +318,9 @@ Clipperz.Crypto.PRNG.CryptoRandomRandomnessSource.prototype = MochiKit.Base.upda var bytesToCollect; if (this.boostMode() == true) { - bytesToCollect = 8; + bytesToCollect = 64; } else { - bytesToCollect = 32; + bytesToCollect = 8; } var randomValuesArray = new Uint8Array(bytesToCollect);