Tools to test hash functions