First, write tests for the hash collision based on existing data. Then, set the configuration for hashes to allow for a huge amount of redos, then set the character length to 1. Generate 26 hashes, ensure they can all be generated (must insert each one), then assert that the 27th generated will fail due to retries.
First, write tests for the hash collision based on existing data. Then, set the configuration for hashes to allow for a huge amount of redos, then set the character length to 1. Generate 26 hashes, ensure they can all be generated (must insert each one), then assert that the 27th generated will fail due to retries.