mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-04 21:10:32 +00:00
U32 MRandomLCG::randI() was using longs
32 and 64 bit windows can handle that. 64 bit linux no likey mixing longs and ints.
This commit is contained in:
parent
82bafd9f35
commit
58ae331609
2 changed files with 3 additions and 3 deletions
|
|
@ -54,7 +54,7 @@ public:
|
|||
inline F32 MRandomGenerator::randF()
|
||||
{
|
||||
// default: multiply by 1/(2^31)
|
||||
return F32(randI()) * (1.0f/2147483647.0f);
|
||||
return F32(randI()) * (1.0f / S32_MAX);
|
||||
}
|
||||
|
||||
inline S32 MRandomGenerator::randI(S32 i, S32 n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue