mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 07:49:10 +02:00
* fix for mantis 16052 RFC4122 compliance of own random GUID creation. Part II
git-svn-id: trunk@15024 -
This commit is contained in:
parent
b6048862b8
commit
49fc4795e3
@ -629,7 +629,7 @@ begin
|
||||
{$ELSE}
|
||||
GetRandomBytes(GUID,SizeOf(Guid));
|
||||
guid.clock_seq_hi_and_reserved:=(guid.clock_seq_hi_and_reserved and $3F) + 64;
|
||||
guid.time_hi_and_version :=(time_hi_and_version and $0FFF)+ $4000;
|
||||
guid.time_hi_and_version :=(guid.time_hi_and_version and $0FFF)+ $4000;
|
||||
Result:=0;
|
||||
{$ENDIF}
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user