Fixed bad digest function resulting in a low entropy.