Inproved PRNG configuration
This commit is contained in:
parent
a6852c9313
commit
6dd16d9359
@ -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);
|
||||||
|
@ -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);
|
||||||
|
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user