added djb2 lowercase hash #74
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This pull request adds a new hash algorithm: DJB2 with lowercase Conversion.
Algorithm Details
Name: DJB2 with Uppercase Conversion
Description: A variant of the DJB2 hash algorithm that converts lowercase letters to uppercase. The initial hash value is 1572, and the hash is updated using the formula: hash_value = (hash_value * 33) & 0xFFFFFFFF.
Type: unsigned_int
Test Case: The hash of the string 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789' is 0xd87d4bef.
Verification
The algorithm passes Flake8 style checks.
The algorithm passes the repository's test suite.
Sample
df0d4ba2e0799f337daac2b0ad7a64d80b7bcd68b7b57d2a26e47b2f520cc260