mirror of
https://github.com/lua/lua
synced 2025-02-08 01:04:03 +03:00
51316f9df7
The call 'math.rand()' converts the higher bits of the internal unsigned integer random to a float, instead of its lower bits. That ensures that Lua compiled with different float precisions always generates equal (up to the available precision) random numbers when given the same seed.