mirror of
https://github.com/gchq/CyberChef
synced 2026-01-05 18:13:15 +00:00
Fixed minor errors
This commit is contained in:
@@ -176,7 +176,7 @@ const Entropy = {
|
||||
let distArray = new Array(256).fill(0),
|
||||
total = 0;
|
||||
for (let i = 0; i < input.length; i++) {
|
||||
distArray[data[i]]++;
|
||||
distArray[input[i]]++;
|
||||
}
|
||||
for (let i = 0; i < distArray.length; i++) {
|
||||
if (distArray[i] > 0) {
|
||||
@@ -184,7 +184,7 @@ const Entropy = {
|
||||
}
|
||||
}
|
||||
return total;
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
export default Entropy;
|
||||
|
||||
Reference in New Issue
Block a user