We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bb347c commit a9e6d9fCopy full SHA for a9e6d9f
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