mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 14:09:06 +02:00
parent
08c7681c60
commit
d438530088
@ -410,8 +410,9 @@ var
|
|||||||
y: longint;
|
y: longint;
|
||||||
kk: longint;
|
kk: longint;
|
||||||
begin
|
begin
|
||||||
if (mti >= MT19937N) or
|
if RandSeed<>OldRandSeed then
|
||||||
(randseed <> oldrandseed) { generate MT19937N longints at one time }
|
mti:=MT19937N+1;
|
||||||
|
if (mti >= MT19937N) { generate MT19937N longints at one time }
|
||||||
then begin
|
then begin
|
||||||
if mti = (MT19937N+1) then // if sgenrand_MT19937() has not been called,
|
if mti = (MT19937N+1) then // if sgenrand_MT19937() has not been called,
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user