Skip to content

Commit

Permalink
Add missing number in SHA-256 docstring and add hyphen for SHA hashes (
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavi committed Nov 21, 2022
1 parent 0343fca commit 9fa6019
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions faker/providers/misc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ def md5(self, raw_output: bool = False) -> Union[bytes, str]:
return res.hexdigest()

def sha1(self, raw_output: bool = False) -> Union[bytes, str]:
"""Generate a random SHA1 hash.
"""Generate a random SHA-1 hash.
If ``raw_output`` is ``False`` (default), a hexadecimal string representation of the SHA1 hash
If ``raw_output`` is ``False`` (default), a hexadecimal string representation of the SHA-1 hash
will be returned. If ``True``, a ``bytes`` object representation will be returned instead.
:sample: raw_output=False
Expand All @@ -84,9 +84,9 @@ def sha1(self, raw_output: bool = False) -> Union[bytes, str]:
return res.hexdigest()

def sha256(self, raw_output: bool = False) -> Union[bytes, str]:
"""Generate a random SHA256 hash.
"""Generate a random SHA-256 hash.
If ``raw_output`` is ``False`` (default), a hexadecimal string representation of the SHA56 hash
If ``raw_output`` is ``False`` (default), a hexadecimal string representation of the SHA-256 hash
will be returned. If ``True``, a ``bytes`` object representation will be returned instead.
:sample: raw_output=False
Expand Down

0 comments on commit 9fa6019

Please sign in to comment.