Perfected generator.c. Note that hash.c is not always perfectly outputing 160 bits.