1
0
mirror of https://github.com/lua/lua.git synced 2025-01-14 05:43:00 +08:00
Roberto Ierusalimschy 51316f9df7 'math.rand()' uses higher bits to produce float value
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.
2018-12-11 11:34:47 -02:00
all
2018-07-09 12:33:01 -03:00
2018-06-08 13:23:18 -03:00
2018-10-25 15:30:15 -03:00
2018-11-01 13:21:00 -03:00
2018-11-01 13:21:00 -03:00
2018-09-11 08:39:12 -03:00
2018-10-23 12:58:38 -03:00
2018-11-01 13:21:00 -03:00
2018-11-22 13:56:04 -02:00
2018-11-01 13:21:00 -03:00
2018-11-01 13:21:00 -03:00
2018-07-12 15:56:44 -03:00
2018-06-18 15:25:19 -03:00
Description
No description provided
16 MiB
Languages
C 67.4%
Lua 32%
Makefile 0.6%