mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 15:40:40 +02:00
* GetRandomBytes calls randomize only once, now thread safe too
git-svn-id: trunk@11125 -
This commit is contained in:
parent
fb53b5e9f6
commit
d419c1078a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user