We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 92ef5c6 + a9e6d9f commit edd54e1Copy full SHA for edd54e1
shannon_entropy.c
@@ -15,7 +15,7 @@ double shannon_entropy(const uint8_t *s)
15
uint64_t entropy_sum = 0;
16
const uint64_t entropy_max = 8 * LOG2_RET_SHIFT;
17
18
- uint32_t bucket[256];
+ uint32_t bucket[BUCKET_SIZE];
19
memset(&bucket, 0, sizeof(bucket));
20
21
for (uint32_t i = 0; i < count; i++)
0 commit comments