* GetRandomBytes calls randomize only once, now thread safe too

git-svn-id: trunk@11125 -
This commit is contained in:
michael 2008-05-29 13:31:32 +00:00
parent fb53b5e9f6
commit d419c1078a

View File

@ -582,8 +582,8 @@ begin
P:=@Buf;
If Not GUIDCalledRandomize then
begin
GUIDCalledRandomize:=True;
Randomize;
GUIDCalledRandomize:=True;
end;
For I:=0 to NBytes-1 do
P[i]:=Random(256);