This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
Files
Blue-Archive---Asset-Downlo…/lib/XXHashService.py
2021-11-08 23:04:08 +01:00

9 lines
214 B
Python

from typing import Union
from xxhash import xxh32_intdigest
def CalculateHash(name: Union[bytes, str]) -> int:
if isinstance(name, str):
name = name.encode("utf8")
return xxh32_intdigest(name, 0)