Implement diversity management based on hashes.