Xinchen Hui
a6519d0514
year++
2018-01-02 12:57:58 +08:00
Tom Van Looy
e4e26f2428
Remove RAND_RANGE() macro
...
The behavior of RANGE_RANGE() is 7.1 changed completely, from
rescaling an already generated number to generating a number
itself. Because of this str_shuffle() ended up generating two
random numbers on every iteration.
To avoid further misuse the function is dropped entirely. Extensions
for PHP >= 7.1 should directly call php_mt_rand_range().
2017-12-09 17:24:17 +01:00
Sammy Kaye Powers
9e29f841ce
Update copyright headers to 2017
2017-01-02 09:30:12 -06:00
Leigh
027375d4c3
Fix legacy mode RAND_RANGE and 32/64-bit consistency
2016-07-16 16:50:20 +00:00
Leigh
6d6ef7aacc
Alias rand to mt_rand
2016-07-05 15:09:49 +01:00
Leigh
eba6e7ce9a
Split rand and mt_rand into separate files
2016-07-05 11:16:37 +01:00
Rouven Weßling
a61029b155
Replace usage of php_int32 and php_uint32 with int32_t and uint32_t
2016-02-04 11:57:41 +01:00
Lior Kaplan
ed35de784f
Merge branch 'PHP-5.6' into PHP-7.0
...
* PHP-5.6:
Happy new year (Update copyright to 2016)
2016-01-01 19:48:25 +02:00
Lior Kaplan
49493a2dcf
Happy new year (Update copyright to 2016)
2016-01-01 19:21:47 +02:00
Xinchen Hui
fc33f52d8c
bump year
2015-01-15 23:27:30 +08:00
Xinchen Hui
0579e8278d
bump year
2015-01-15 23:26:37 +08:00
Stanislav Malyshev
b7a7b1a624
trailing whitespace removal
2015-01-10 15:07:38 -08:00
Anatol Belski
bdeb220f48
first shot remove TSRMLS_* things
2014-12-13 23:06:14 +01:00
Johannes Schlüter
d0cb715373
s/PHP 5/PHP 7/
2014-09-19 18:33:14 +02:00
Anatol Belski
c3e3c98ec6
master renames phase 1
2014-08-25 19:24:55 +02:00
Anatol Belski
864172d9a4
further fixes to ext/standard and zend
2014-08-16 17:31:40 +02:00
Rouven Weßling
68283c9f4a
Fix a compiler warning in php_rand.h
2014-04-20 16:35:36 -07:00
Xinchen Hui
c0d060f5c0
Bump year
2014-01-03 11:04:26 +08:00
Xinchen Hui
0a7395e009
Happy New Year
2013-01-01 16:28:54 +08:00
Felipe Pena
4e19825281
- Year++
2012-01-01 13:15:04 +00:00
Felipe Pena
0203cc3d44
- Year++
2011-01-01 02:17:06 +00:00
Sebastian Bergmann
9ba1e81665
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Sebastian Bergmann
08659c2dcd
MFH: Bump copyright year, 3 of 3.
2008-12-31 11:15:49 +00:00
Antony Dovgal
184173fccc
fix build
2008-03-07 08:56:38 +00:00
Stanislav Malyshev
507a7840ed
improve seed calculation
...
# better solution would be to port mt's multi-value seed procedure
2008-03-07 03:36:58 +00:00
Sebastian Bergmann
d1dded8751
MFH: Bump copyright year, 2 of 2.
2007-12-31 07:17:19 +00:00
Sebastian Bergmann
4223aa4d5e
MFH: Bump year.
2007-01-01 09:36:18 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
foobar
c7f8c84f36
- Fixed bug #26949 (rand(min,max) always returns min when ZTS enabled)
2004-01-19 02:30:54 +00:00
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
...
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Ilia Alshanetsky
ece0a731e9
Fixed bug #25170 (Problem with generation of random numbers on solaris)
2003-08-20 16:40:22 +00:00
Sara Golemon
cc28589156
Prevent carryover when max-min > signed int max
2003-08-13 00:49:22 +00:00
foobar
9a2a0aa5e1
- Fixed bug #25007 (rand() & mt_rand() seed RNG every call).
...
# Also cleaned up the code a bit with this fix.
2003-08-11 00:42:29 +00:00
Ilia Alshanetsky
6f2df21136
Fixed bug #24909 (Bad random numbers with ZTS builds on Solaris)
2003-08-08 13:34:38 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Sebastian Bergmann
b506f5c8f8
Bump year.
2002-12-31 16:08:15 +00:00
Andrei Zmievski
5f3a9ebf13
Make RAND_RANGE() an API macro.
2002-06-09 04:26:36 +00:00
Sebastian Bergmann
90613d2282
Maintain headers.
2002-02-28 08:29:35 +00:00
Sebastian Bergmann
38933514e1
Update headers.
2001-12-11 15:32:16 +00:00
Sterling Hughes
97fea0931c
Make rand thread safe when ZTS is defined.
2001-09-16 20:49:57 +00:00
Sterling Hughes
6963ac4050
export the mt rand functions...
2001-09-09 10:44:12 +00:00
foobar
42b5521af5
revert bad commit.
2001-09-05 19:47:55 +00:00
Daniel Beulshausen
9b8886410d
fix zts+win32 build
2001-09-04 02:19:30 +00:00
Derick Rethans
383691eec2
- Fix broken build
...
#- Please test before commit!
2001-09-03 17:38:10 +00:00
Jeroen van Wolffelaar
dc8386e30d
Removed outdated comment until I've got a better one
2001-09-03 12:01:50 +00:00
Jeroen van Wolffelaar
efb83df9f9
Kill some warnings/errors (reported by Sebastian, more to come, but
...
could take some time. Update of ZTS-builderrors is welcome)
2001-09-03 11:57:15 +00:00
Jeroen van Wolffelaar
f7306ce010
Merge RAND_REDESIGN into MAIN
2001-09-03 01:06:23 +00:00
Andi Gutmans
eb6ba01d1c
- Fix copyright notices with 2001
2001-02-26 06:11:02 +00:00
James Moore
118c015529
Adding php_rand() and php_srand(seed) as a wrapper around random, lrand48 and rand.
2001-02-22 00:24:19 +00:00