summaryrefslogtreecommitdiff
path: root/ext/standard/rand.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove proto comments from C filesMax Semenik2020-07-061-6/+3
| | | | Closes GH-5758
* Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
| | | | Closes GH-4732.
* Remove local variablesPeter Kokot2019-02-031-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
|
* Future-proof email addresses...Zeev Suraski2018-11-011-1/+1
|
* Remove unused Git attributes identPeter Kokot2018-07-251-1/+0
| | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* year++Xinchen Hui2018-01-021-1/+1
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|
* Use new param API in standardSara Golemon2016-12-301-3/+4
|
* Preserve BC for rand() AND mt_rand() where min > maxLeigh2016-08-101-0/+24
|
* Alias rand to mt_randLeigh2016-07-051-84/+3
|
* Split rand and mt_rand into separate filesLeigh2016-07-051-246/+0
|
* Merge branch 'PHP-7.0'Leigh2016-02-181-1/+1
|\ | | | | | | | | | | | | | | | | * PHP-7.0: Revert "Fix #71152: mt_rand() returns the different values from original mt19937ar.c" `mt_rand()` is seedable with `mt_srand()` which means it can be used to (re)produce specific streams of numbers. All code (no matter how few instances that may be) that previously depended on this behaviour will no longer produce the same results. This kind of change needs to be discussed before being committed
| * Revert "Fix #71152: mt_rand() returns the different values from original ↵Leigh2016-02-181-1/+1
| | | | | | | | | | | | | | | | | | | | mt19937ar.c" This reverts commit 6f6bd8ce531636134efd5f669a4e8373fb2e9e51. `mt_rand()` is seedable with `mt_srand()` which means it can be used to (re)produce specific streams of numbers. All code (no matter how few instances that may be) that previously depended on this behaviour will no longer produce the same results. This kind of change needs to be discussed before being committed.
| * Fix #71152: mt_rand() returns the different values from original mt19937ar.ckusano2016-02-171-1/+1
| |
* | Merge branch 'master' into fix-mt_randkusano2016-02-171-10/+10
|\ \ | | | | | | | | | | | | Conflicts: ext/standard/rand.c
| * | Replace usage of php_int32 and php_uint32 with int32_t and uint32_tRouven Weßling2016-02-041-9/+9
| |/
| * Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
| |\ | | | | | | | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| | * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| | |
| | * bump yearXinchen Hui2015-01-151-1/+1
| | |
* | | Fix #71152: mt_rand() returns the different values from original mt19937ar.ckusano2015-12-181-1/+1
|/ /
* | bump yearXinchen Hui2015-01-151-1/+1
| |
* | trailing whitespace removalStanislav Malyshev2015-01-101-10/+10
| |
* | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-18/+18
| |
* | typo fixes - https://github.com/vlajos/misspell_fixerVeres Lajos2014-11-191-1/+1
| |
* | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| |
* | master renames phase 3Anatol Belski2014-08-251-1/+1
| |
* | master renames phase 1Anatol Belski2014-08-251-20/+20
| |
* | further fixes to ext/standard and zendAnatol Belski2014-08-161-17/+17
| |
* | fix macros in the 5 basic extensionsAnatol Belski2014-08-161-4/+4
|/
* Fix a compiler warning in php_rand.hRouven Weßling2014-04-201-1/+0
|
* Bump yearXinchen Hui2014-01-031-1/+1
|
* Happy New YearXinchen Hui2013-01-011-1/+1
|
* - Year++Felipe Pena2012-01-011-1/+1
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* - Fixed bug #53403 (use of unitialized values). Fixes the fix for bug #46587.Gustavo André dos Santos Lopes2010-11-251-7/+8
| | | | | - Added test for bug #46587.
* - Fixed compile warningsFelipe Pena2010-11-231-1/+1
|
* Fixed bug #46587 (mt_rand() does not check that max is greater than min).Ilia Alshanetsky2010-11-231-0/+5
|
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* MFH: initialize optional varsArnaud Le Blanc2008-10-211-2/+2
|
* MFH: Fix bug #46209 - Remove license condition that is no longer required.Scott MacVicar2008-10-011-8/+0
|
* MFH: New way for check void parametersFelipe Pena2008-03-101-4/+4
|
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* Faster and better licensed implementationDmitry Stogov2006-11-101-139/+121
|
* bump year and license versionfoobar2006-01-011-3/+3
|
* - Bumber up yearfoobar2005-08-031-1/+1
|
* removing the unwanted inclusion of headersAnantha Kesari H Y2004-09-251-4/+0
|
* - Moved php_srand() call into php_rand().foobar2004-01-191-4/+4
| | | | | | | | # Makes shuffle() and str_shuffle() to be random without having to # call srand() in scripts. # They don't internally call php_srand() at all and it would be silly # to start adding php_srand() calls all over the place..