Browse Source

minor refactoring

Ugochukwu Mmaduekwe 6 years ago
parent
commit
21ce91b409
1 changed files with 5 additions and 1 deletions
  1. 5 1
      CryptoLib.Tests/src/Math/ECPointTests.pas

+ 5 - 1
CryptoLib.Tests/src/Math/ECPointTests.pas

@@ -591,12 +591,16 @@ begin
     T := c.FromBigInteger(TBigInteger.Create(m, rand));
     z := zeroElement;
     w := rhs;
-    for i := 1 to System.Pred(m) do
+    i := 1;
+
+    while i < m do
     begin
       w2 := w.Square();
       z := z.Square().Add(w2.Multiply(T));
       w := w2.Add(rhs);
+      System.Inc(i);
     end;
+
     if (not w.IsZero) then
     begin
       result := Nil;