Skip to content

Commit

Permalink
Update misc.py
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Mar 13, 2024
1 parent 96fb65a commit d0c808b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Libraries/Utility/src/utility/misc.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,7 @@ def generate_hash(
data_input: bytes | bytearray | memoryview | os.PathLike | str,
hash_algo: str = "sha1", # sha1 is faster than md5 in python somehow
chunk_size: int = 262144, # 256KB default
*,
always_chunk: bool = False, # Don't unnecessarily chunk bytes/bytearray inputs.
) -> str:
# Create a hash object for the specified algorithm
Expand Down

0 comments on commit d0c808b

Please sign in to comment.