fix entropy.c