mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:07:35 +00:00
LibCrypto: Don't copy the prime test candidates
This was copying a bunch of bigints for no reason.
This commit is contained in:
parent
3fe7ac0924
commit
48fbf6a88d
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ static bool MR_primality_test(UnsignedBigInteger n, const Vector<UnsignedBigInte
|
|||
return n == 2;
|
||||
}
|
||||
|
||||
for (auto a : tests) {
|
||||
for (auto& a : tests) {
|
||||
// Technically: ASSERT(2 <= a && a <= n - 2)
|
||||
ASSERT(a < n);
|
||||
auto x = ModularPower(a, d, n);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue