summaryrefslogtreecommitdiff
path: root/ext/standard/rand.c
Commit message (Collapse)AuthorAgeFilesLines
* 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..
* - A belated happy holidays and PHP 5Andi Gutmans2004-01-081-2/+2
|
* Revert proto 'fix'.Ilia Alshanetsky2004-01-061-2/+2
|
* Proto fixes.Ilia Alshanetsky2004-01-061-2/+2
|
* - Fixed bug #25007 (rand() & mt_rand() seed RNG every call).foobar2003-08-111-8/+6
| | | | | # Also cleaned up the code a bit with this fix.
* updating license information in the headers.James Cox2003-06-101-3/+3
|
* Win32 build improvementsZeev Suraski2003-02-171-7/+0
|
* Bump year.Sebastian Bergmann2002-12-311-1/+1
|
* NetWare related changes/modificationsAnantha Kesari H Y2002-09-061-0/+4
|
* Make RAND_RANGE() an API macro.Andrei Zmievski2002-06-091-2/+0
|