File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -824,9 +824,9 @@ struct Factorizer {
824824 BigInteger perfectSquare = 1U ;
825825 std::vector<size_t > fv (primes.size (), 0 );
826826 while (perfectSquare < toFactor) {
827- const BigInteger bIndex = threadOffset + ( dis (gen) % threadRange) ;
828- const BigInteger halfBIndex = batchOffset + (bIndex >> 1U ) + 1U ;
829- const BigInteger bNum = (bIndex & 1U ) ? batchTotal - halfBIndex : halfBIndex ;
827+ const BigInteger bIndex = dis (gen) % threadRange;
828+ const BigInteger halfBIndex = threadOffset + (bIndex >> 1U ) + 1U ;
829+ const BigInteger bNum = (bIndex & 1U ) ? halfBIndex : ( batchTotal - halfBIndex) ;
830830 BigInteger n = forwardFn ((bNum * wheelEntryCount) + (dis (gen) % wheelEntryCount));
831831 const std::vector<size_t > pfv = factorizationVector (&n);
832832 if (!pfv.size ()) {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
88
99[project ]
1010name = " FindAFactor"
11- version = " 4.7.5 "
11+ version = " 4.7.6 "
1212requires-python = " >=3.8"
1313description = " Find any nontrivial factor of a number"
1414readme = {file = " README.txt" , content-type = " text/markdown" }
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def build_extension(self, ext):
4040
4141setup (
4242 name = 'FindAFactor' ,
43- version = '4.7.5 ' ,
43+ version = '4.7.6 ' ,
4444 author = 'Dan Strano' ,
4545 author_email = 'stranoj@gmail.com' ,
4646 description = 'Find any nontrivial factor of a number' ,
You can’t perform that action at this time.
0 commit comments