|
@@ -569,6 +569,9 @@ begin
|
|
|
Result := DoForceDirectories(SetDirSeparators(Dir));
|
|
|
end;
|
|
|
|
|
|
+Var
|
|
|
+ GUIDCalledRandomize : Boolean = False;
|
|
|
+
|
|
|
Procedure GetRandomBytes(Var Buf; NBytes : Integer);
|
|
|
|
|
|
Var
|
|
@@ -577,7 +580,11 @@ Var
|
|
|
|
|
|
begin
|
|
|
P:=@Buf;
|
|
|
- Randomize;
|
|
|
+ If Not GUIDCalledRandomize then
|
|
|
+ begin
|
|
|
+ GUIDCalledRandomize:=True;
|
|
|
+ Randomize;
|
|
|
+ end;
|
|
|
For I:=0 to NBytes-1 do
|
|
|
P[i]:=Random(256);
|
|
|
end;
|