Browse Source

* fix for mantis 16052 RFC4122 compliance of own random GUID creation. Part II

git-svn-id: trunk@15024 -
marco 15 years ago
parent
commit
49fc4795e3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/objpas/sysutils/sysutils.inc

+ 1 - 1
rtl/objpas/sysutils/sysutils.inc

@@ -629,7 +629,7 @@ begin
     {$ELSE}
     {$ELSE}
     GetRandomBytes(GUID,SizeOf(Guid));
     GetRandomBytes(GUID,SizeOf(Guid));
     guid.clock_seq_hi_and_reserved:=(guid.clock_seq_hi_and_reserved and $3F) + 64;
     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;
     Result:=0;
     {$ENDIF}
     {$ENDIF}
     end;
     end;