mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 02:42:58 +00:00
Patched random generator on 64-bit
This commit is contained in:
@ -82,7 +82,7 @@ class Random{
|
|||||||
if($t > 2147483647){
|
if($t > 2147483647){
|
||||||
$t -= 4294967296;
|
$t -= 4294967296;
|
||||||
}
|
}
|
||||||
return (int) $t;
|
return (int) $t % 0x7fffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user