Skip to content

Commit

Permalink
urandom: Fix formula in getrandbits.
Browse files Browse the repository at this point in the history
  • Loading branch information
laurensvalk committed Mar 28, 2023
1 parent c415296 commit 8172d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/urandom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def getrandbits(k: int) -> int:
"""
getrandbits(k) -> int
Gets a random integer :math:`N` satisfying :math:`0 \\leq N < 2^{\\text{bits}}`.
Gets a random integer :math:`N` satisfying :math:`0 \\leq N < 2^{\\text{k}}`.
Arguments:
k (int): How many bits to use for the result.
Expand Down

0 comments on commit 8172d11

Please sign in to comment.