Skip to content

Commit f267246

Browse files
committed
do not call Randomize in TSymmetricAlgorithmBase.AddPadding
1 parent 135ec99 commit f267246

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Source/Extensions/Cryptography/Spring.Cryptography.Base.pas

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,6 @@ procedure TSymmetricAlgorithmBase.AddPadding(var buffer: TBuffer; startIndex,
433433
end;
434434
TPaddingMode.ISO10126:
435435
begin
436-
Randomize;
437436
for i := 0 to count - 2 do
438437
buffer[startIndex + i] := Math.RandomRange(0, 256);
439438
buffer[startIndex + count - 1] := Byte(count);

0 commit comments

Comments
 (0)