This exhausts the `generate_hashes` generator, but I have no idea why this is needed or done.