mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-06 05:28:07 +02:00
* simplified random(int64) code
git-svn-id: trunk@42513 -
This commit is contained in:
parent
3fb7c19482
commit
b0683edfcb
@ -688,11 +688,14 @@ var
|
||||
carry: qword;
|
||||
begin
|
||||
if (l < 0) then
|
||||
inc(l);
|
||||
q:=qword(l);
|
||||
if q>qword(low(int64)) then
|
||||
q:=qword(-l);
|
||||
a:=mtwist_u32rand;
|
||||
begin
|
||||
inc(l);
|
||||
q:=qword(-l)
|
||||
end
|
||||
else
|
||||
q:=qword(l);
|
||||
|
||||
a:=mtwist_u32rand;
|
||||
b:=mtwist_u32rand;
|
||||
|
||||
c:=q shr 32;
|
||||
|
Loading…
Reference in New Issue
Block a user