Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 14, 2026
commit 0ac7d1fc52adce36fd69ccc97415a51b1231893d
3 changes: 3 additions & 0 deletions hashes/joaat.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
source: https://en.wikipedia.org/wiki/Jenkins_hash_function
"""


def joaat(key: str) -> int:
"""
Calculate Jenkins One-at-a-Time hash for a key.
Expand All @@ -31,6 +32,8 @@ def joaat(key: str) -> int:

return hash_value


if __name__ == "__main__":
import doctest

doctest.testmod()