summaryrefslogtreecommitdiff
path: root/ext/standard/rand.c
Commit message (Collapse)AuthorAgeFilesLines
* Maintain headers.Sebastian Bergmann2002-02-281-1/+1
|
* Update headers.Sebastian Bergmann2001-12-111-2/+2
|
* @ Have rand() and mt_rand() seed automatically if srand() or mt_srand() hasSterling Hughes2001-10-071-2/+11
| | | | | @ not been called. (Sterling)
* hopefully fix win32 compile warningsSterling Hughes2001-09-181-2/+2
| | | | | # I really wish i had a box to compile php with win32 on
* Make rand thread safe when ZTS is defined.Sterling Hughes2001-09-161-8/+61
|
* Hopefully fix compile warnings on win32 systemsSterling Hughes2001-09-161-0/+9
|
* for the daft folks that think 0 is a good seed.Sterling Hughes2001-09-161-4/+4
|
* @ Make the seed options to srand() and mt_srand() optional, if the seed isSterling Hughes2001-09-161-6/+16
| | | | | | | | | | | | @ not specified, the generate the most random seed possible. (Sterling) Please, if anyone has any comments on the way I generate this seed, speak up! This seems to be the most "random" seed I could come up with... This commit is 100% backwards compatible :) Add myself to the authors list cause of recent work on the file
* - Don't wrap lines... this is annoying while coding.Derick Rethans2001-09-091-2/+2
|
* export the mt rand functions...Sterling Hughes2001-09-091-13/+11
|
* add missing )Sterling Hughes2001-09-061-1/+1
|
* fix ms compile warningsSterling Hughes2001-09-061-1/+1
|
* spaces -> tabs work cont.Sterling Hughes2001-09-061-9/+9
|
* ws fixSterling Hughes2001-09-061-70/+72
|
* Fix ts buildSterling Hughes2001-09-051-4/+4
| | | | | | | # I've gotta start compiling --enable-experimental-zts... anyway we can make # this the default when compiling from cvs? It'll help a large portion of # compile issues with patches
* Straight out da bronx, I be using zend_parse_parameters()Sterling Hughes2001-09-051-32/+22
| | | | | # Word out to my peeps on Connor st.
* stray tabs and spacesSterling Hughes2001-09-051-2/+2
|
* change range macro semanticsSterling Hughes2001-09-051-3/+3
| | | | | # Kinda torn between the two, thoughts?
* remove inlineSterling Hughes2001-09-051-1/+1
|
* a bit of api cleanup... move range stuff into a macro (properly :)Sterling Hughes2001-09-051-95/+73
|
* revert bad commit.foobar2001-09-051-226/+269
|
* fix zts+win32 buildDaniel Beulshausen2001-09-041-9/+12
|
* - Fix broken buildDerick Rethans2001-09-031-1/+1
| | | | | #- Please test before commit!
* Kill some warnings/errors (reported by Sebastian, more to come, butJeroen van Wolffelaar2001-09-031-4/+7
| | | | | could take some time. Update of ZTS-builderrors is welcome)
* Fix SIGSEGV because HAS_SRAND didn't check wether the entry existed atJeroen van Wolffelaar2001-09-031-1/+3
| | | | | all
* Update creditsJeroen van Wolffelaar2001-09-031-0/+1
|
* Merge RAND_REDESIGN into MAINJeroen van Wolffelaar2001-09-031-270/+218
|
* Track down a few more functions that don't check for 0 args and useRasmus Lerdorf2001-08-131-0/+8
| | | | | faster mechanism
* WhitespaceZeev Suraski2001-08-111-5/+5
|
* Redesigned thread safety mechanism - nua nuaZeev Suraski2001-07-281-7/+6
|
* Fix folding and clean up some extensionsRasmus Lerdorf2001-06-061-2/+5
|
* vim-6 does folding - clean up a bunch of missing folding tags plusRasmus Lerdorf2001-06-051-1/+2
| | | | | some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
* Fix erronous out of bounds error message in rand(min,max)Fredrik Öhrn2001-03-201-1/+1
|
* - Fix copyright notices with 2001Andi Gutmans2001-02-261-1/+1
|
* Adding php_rand() and php_srand(seed) as a wrapper around random, lrand48 ↵James Moore2001-02-221-18/+4
| | | | and rand.
* - Fix for bug 9277, two the same boundaries make sense in some casesDerick Rethans2001-02-191-1/+1
|
* For those lucky systems with both random() and *rand48(), the random()Jim Jagielski2001-02-061-6/+6
| | | | | family is the prefered choice. So if both exist, we now choose that.
* @Set default include_path so PEAR files can be reached (Stig)Stig Bakken2000-07-181-9/+9
|
* Rename phpmath.h to php_math.h.Sascha Schumann2000-06-131-1/+1
|
* - ARG_COUNT(ht) -> ZEND_NUM_ARGS() mega patchAndi Gutmans2000-06-051-4/+4
|
* in [mt_]rand(): (see BUG #3353)Hartmut Holzgraefe2000-05-221-3/+7
| | | | | | - additional range checking for (max-min)<=[MT_]RAND_MAX - [mt_]rand(0,[mt_]getrandmax()) will now work without integer overflow
* Update the license with the new clause 6Zeev Suraski2000-05-181-2/+2
|
* - Get rid of newly introduced warningZeev Suraski2000-04-241-1/+1
|
* - In Windows RAND_MAX is defined in stdlib.hAndi Gutmans2000-04-221-1/+0
| | | | | - Get rid of comment which is confusing.
* - Hopefully fix mt_rand() functions under Windows. This patch will effectAndi Gutmans2000-04-221-2/+5
| | | | | all platforms so I hope it's OK.
* the pipe is breaking all the timeZeev Suraski2000-02-191-2/+2
|
* Happy Y2K patch! Happy new year (or the new millennium, depending on whetherSascha Schumann2000-01-011-1/+1
| | | | | you start counting at 0 or 1).
* - Change uint32 to php_uint32 (PostgreSQL defines uint32, and perhaps other ↵Zeev Suraski1999-12-261-7/+7
| | | | | | | packages too) - PostgreSQL finally compiles&links
* - The tree compiles againZeev Suraski1999-12-181-4/+4
|
* More php3_ annihilationZeev Suraski1999-12-181-2/+2
|