We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 16458c6 commit 0cabd6dCopy full SHA for 0cabd6d
math/wide_integer/uintwide_t.h
@@ -7182,7 +7182,9 @@
7182
7183
// Loop over the trials to perform the primality testing.
7184
7185
- for(std::size_t idx { UINT8_C(0) }; ((idx < number_of_trials) && result); ++idx) // NOLINT(altera-id-dependent-backward-branch)
+ std::size_t idx { UINT8_C(0) };
7186
+
7187
+ do
7188
{
7189
x = distribution(generator, params);
7190
y = powm(x, q, np);
@@ -7227,7 +7229,10 @@
7227
7229
// Mark failure if (y == 1) and (jdx != 0).
7228
7230
result = false;
7231
}
7232
7233
+ ++idx;
7234
7235
+ while((idx < number_of_trials) && result);
7236
7237
return result;
7238
0 commit comments