Skip to content

Commit 908a74d

Browse files
committed
correct typing hint for drbg
1 parent c4577d6 commit 908a74d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dilithium_py/drbg/aes256_ctr_drbg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def __init__(self, seed: Optional[bytes] = None, personalization: bytes = b""):
3030
self.__ctr_drbg_update(seed_material)
3131
self.reseed_ctr = 1
3232

33-
def __check_entropy_input(self, entropy_input: bytes) -> bytes:
33+
def __check_entropy_input(self, entropy_input: Optional[bytes] = None) -> bytes:
3434
"""
3535
If no entropy given, us os.urandom, else
3636
check that the input is of the right length.

0 commit comments

Comments
 (0)