Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions BitVector/BitVector.py
Original file line number Diff line number Diff line change
Expand Up @@ -2123,8 +2123,7 @@ def test_for_primality(self) -> float:
break
if not primeflag:
return 0
probability_of_prime = 1 - 1.0 / (4 ** len(probes))
return probability_of_prime
return 1 - 1.0 / (4 ** len(probes))

def gen_random_bits(self, width: int) -> Self:
"""Generates a random odd integer bit vector of specified bit width.
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ ignore = [
"PLW1641", # eq-without-hash
"PT012", # pytest-raises-with-multiple-statements
"PTH123", # builtin-open
"RET504", # unnecessary-assign
"S101", # assert
"SIM103", # needless-bool
"SIM108", # if-else-block-instead-of-if-exp
Expand Down
Loading