Commit graph

14 commits

Author SHA1 Message Date
Wil Mahan
2a03980093 Bug 589: make random selection slightly more random. PHP's
mt_rand() function has a maximum value of 2^31-1, which
is small enough that duplicate values can occur due to the
Birthday paradox, e.g. on the English Wikipedia. To fix
this, add a wfRandom() function that calls mt_rand()
twice to get the desired amount of randomness.
2004-10-11 17:34:39 +00:00
Brion Vibber
18c44865d2 Add comment about why we pick a random number in PHP and use it as a
literal constant instead of the RAND() function. Also removed wfLocalUrl().
2004-10-02 02:27:30 +00:00
Antoine Musso
ba2afcd9fa Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema 2004-09-03 23:00:01 +00:00
Antoine Musso
90155b8a97 Changing comments layout preparing for generated documentation with Phpdocumentor 2004-09-02 23:28:24 +00:00
Tim Starling
ac549401d4 * Support for table name prefixes throughout the code. No support yet for converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them
* DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE
* Converted to use SQL wrapper functions instead of direct SQL in various places
* Experimental method for preserving the chronological order of events when slave servers are used. Untested.
* Fixes to the new post-parse existence test feature
* Some.. other stuff
2004-07-18 08:48:43 +00:00
Tim Starling
b96b707efa OOP calling convention for database functions. DBMS abstraction implemented by means of functions instead of global variables, PostgreSQL object converted to a subclass instead of a drop-in replacement. Also the beginnings of a flexible table name feature. 2004-07-10 03:09:26 +00:00
Tim Starling
f0987b0523 exclude Rambot (or any other arbitrary SQL) from Special:Randompage 2004-07-10 01:25:42 +00:00
Domas Mituzas
ab975564db get rid of 'use index' for nonmysql 2004-06-09 16:19:24 +00:00
Tim Starling
68967f0f00 use of $wgRequest 2004-04-01 12:53:01 +00:00
Brion Vibber
0332f4c598 Fix for compatibility with short_open_tag = Off 2004-02-18 02:15:00 +00:00
Tim Starling
9b28aa9905 changing wfQuery to allow replication 2003-09-20 02:21:40 +00:00
Brion Vibber
5b559bbd84 Work around comma-in-string-form-of-random-index bug which appears when set to a locale with a comma as the decimal separator 2003-06-06 18:38:14 +00:00
Brion Vibber
5648184915 Tweak to use local random, don't trust mysql's; new seed 2003-06-03 21:27:06 +00:00
Lee Daniel Crocker
d82c14fb4f Initial revision 2003-04-14 23:10:40 +00:00