Skip to content

Commit b2b2ccb

Browse files
authored
Merge pull request #7 from MaikBastian/cdd-statistic-fix
Fix calculation of cdd statistic
2 parents 7fd66f2 + 4e9925b commit b2b2ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cipherTypeDetection/featureCalculations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@
359359
var i,j,k;
360360
var max,sum;
361361
var index,dif,long_corr,short_corr;
362-
max = 0;
362+
max = -1;
363363
364364
for (j= col;j<key_len;j++) {
365365
long_corr = short_corr = 0;

0 commit comments

Comments
 (0)