Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion shannon_entropy.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ double shannon_entropy(const uint8_t *s)
uint64_t entropy_sum = 0;
const uint64_t entropy_max = 8 * LOG2_RET_SHIFT;

uint32_t bucket[256];
uint32_t bucket[BUCKET_SIZE];
memset(&bucket, 0, sizeof(bucket));

for (uint32_t i = 0; i < count; i++)
Expand Down