Browse Source

* patch by Rika: fix for 15f29b8fa06a5b5d25a0d4783d7940fdf73b00d2

florian 2 years ago
parent
commit
159fa78514
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/inc/system.inc

+ 1 - 1
rtl/inc/system.inc

@@ -744,7 +744,7 @@ begin
       { random(longint(l)), inlined. This makes random(NativeType) on 64-bit platforms match 32-bit when possible. }
       { random(longint(l)), inlined. This makes random(NativeType) on 64-bit platforms match 32-bit when possible. }
       if (l < 0) then
       if (l < 0) then
         inc(l);
         inc(l);
-      exit(longint(int64(system.random(high(int32)))*l shr 32));
+      exit(longint(int64(xsr128_32_u32rand)*l shr 32));
     end;
     end;
 
 
   if (l < 0) then
   if (l < 0) then