1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2024-11-14 07:29:01 +01:00

Inproved PRNG configuration

This commit is contained in:
Giulio Cesare Solaroli 2014-06-21 10:50:00 +02:00
parent a6852c9313
commit 6dd16d9359
No known key found for this signature in database
GPG Key ID: 22E34C908F02CBA2
3 changed files with 6 additions and 6 deletions

View File

@ -316,9 +316,9 @@ Clipperz.Crypto.PRNG.CryptoRandomRandomnessSource.prototype = MochiKit.Base.upda
var bytesToCollect; var bytesToCollect;
if (this.boostMode() == true) { if (this.boostMode() == true) {
bytesToCollect = 8; bytesToCollect = 64;
} else { } else {
bytesToCollect = 32; bytesToCollect = 8;
} }
var randomValuesArray = new Uint8Array(bytesToCollect); var randomValuesArray = new Uint8Array(bytesToCollect);

View File

@ -318,9 +318,9 @@ Clipperz.Crypto.PRNG.CryptoRandomRandomnessSource.prototype = MochiKit.Base.upda
var bytesToCollect; var bytesToCollect;
if (this.boostMode() == true) { if (this.boostMode() == true) {
bytesToCollect = 8; bytesToCollect = 64;
} else { } else {
bytesToCollect = 32; bytesToCollect = 8;
} }
var randomValuesArray = new Uint8Array(bytesToCollect); var randomValuesArray = new Uint8Array(bytesToCollect);

View File

@ -318,9 +318,9 @@ Clipperz.Crypto.PRNG.CryptoRandomRandomnessSource.prototype = MochiKit.Base.upda
var bytesToCollect; var bytesToCollect;
if (this.boostMode() == true) { if (this.boostMode() == true) {
bytesToCollect = 8; bytesToCollect = 64;
} else { } else {
bytesToCollect = 32; bytesToCollect = 8;
} }
var randomValuesArray = new Uint8Array(bytesToCollect); var randomValuesArray = new Uint8Array(bytesToCollect);