Nikita Popov
fd07302024
Fixed bug #75170
...
This change may result in different mt_rand/rand sequences being
generated on 64-bit systems for a specific seed.
See also https://externals.io/message/100229 .
2017-09-07 20:04:38 +02:00
Sammy Kaye Powers
9e29f841ce
Update copyright headers to 2017
2017-01-02 09:30:12 -06:00
Sara Golemon
a23f08a33c
Use new param API in standard
2016-12-30 17:28:55 -08:00
Leigh
9a9004318f
Preserve BC for rand() AND mt_rand() where min > max
2016-08-10 23:32:32 +01:00
Leigh
2ece5decb7
Swap min/max if min > max
2016-08-08 22:31:59 +01:00
Leigh
99e3bb1430
Allow min > max for mt_rand(). Bug #72784
2016-08-08 22:16:27 +01:00
Leigh
5bf39267ee
mt_rand 32/64-bit consistency
2016-08-06 11:15:26 +01:00
Remi Collet
f9ce8aa75b
Minor revert of be3640150c
...
On 32bits this may cause php to hangs forever.
2016-08-03 14:27:46 +02:00
Leigh
027375d4c3
Fix legacy mode RAND_RANGE and 32/64-bit consistency
2016-07-16 16:50:20 +00:00
Leigh
69e7d8dcd5
Make mode selection part of mt_srand()
...
The mode of operation is intrinsically linked to seeding, so this makes a lot of sense
2016-07-07 15:14:06 +01:00
Leigh
1f5cfea087
Fix RAND_RANGE for mt_rand
2016-07-05 12:13:38 +01:00
Leigh
7981a294bd
Fix mt_rand impl. Provide legacy impl. access.
2016-07-05 11:54:07 +01:00
Leigh
eba6e7ce9a
Split rand and mt_rand into separate files
2016-07-05 11:16:37 +01:00