Skip to content

Commit

Permalink
PR #430 by zirconium-n: reduced util::try_minimal_primitive_root sear…
Browse files Browse the repository at this point in the history
…ch iterations by half.
  • Loading branch information
Wei Dai committed Mar 15, 2022
1 parent cfe4fa4 commit 9e32655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native/src/seal/util/numth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ namespace seal
uint64_t current_generator = root;

// destination is going to always contain the smallest generator found
for (size_t i = 0; i < degree; i++)
for (size_t i = 0; i < degree; i += 2)
{
// If our current generator is strictly smaller than destination,
// update
Expand Down

0 comments on commit 9e32655

Please sign in to comment.