If the entropy of the output is higher than the entropy of the input then the branch will return
This commit is contained in:
parent
8c3d3a3d94
commit
d29f6efad8
@ -308,8 +308,8 @@ class Magic {
|
||||
let outputEntropy = 0;
|
||||
if (entropyTests) {
|
||||
outputEntropy = this.calcEntropy(new Uint8Array(output));
|
||||
console.log(entropyTests.output);
|
||||
console.log(outputEntropy);
|
||||
if (inputEntropy < outputEntropy)
|
||||
return;
|
||||
}
|
||||
|
||||
const outputRegexes = OperationConfig[op.op].outputRegexes;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user