You've already forked lazarus-ccr
tvplanit: Use "random(High(Int64))" instead of "random($7FFFFFFF)" in ID generator for IniDatastore.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4848 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -167,7 +167,7 @@ end;
|
|||||||
function TVpIniDatastore.GetNextID(TableName: string): Int64;
|
function TVpIniDatastore.GetNextID(TableName: string): Int64;
|
||||||
begin
|
begin
|
||||||
repeat
|
repeat
|
||||||
Result := Random($7FFFFFFF);
|
Result := Random(High(Int64));
|
||||||
until UniqueID(Result);
|
until UniqueID(Result);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user