summaryrefslogtreecommitdiffstats
path: root/Modules/_randommodule.c
Commit message (Collapse)AuthorAgeFilesLines
* SF bug #812202: randint is always evenRaymond Hettinger2003-10-051-0/+44
| | | | | | | * Added C coded getrandbits(k) method that runs in linear time. * Call the new method from randrange() for ranges >= 2**53. * Adds a warning for generators not defining getrandbits() whenever they have a call to randrange() with too large of a population.
* PyType_GenericAlloc is inherited from object.Raymond Hettinger2003-05-231-1/+1
|
* PyObject_IsTrue() can return an error condition.Raymond Hettinger2003-04-231-1/+4
| | | | Adding code to handle it properly.
* Minor source formatting fixes.Raymond Hettinger2003-04-161-2/+2
|
* Patch #661760: Cygwin auto-import module patchJason Tishler2003-01-061-6/+3
| | | | | | | | | | | | The attached patch enables shared extension modules to build cleanly under Cygwin without moving the static initialization of certain function pointers (i.e., ones exported from the Python DLL core) to a module initialization function. Additionally, this patch fixes the modules that have been changed in the past to accommodate Cygwin.
* Try to get compilation working for cygwinNeal Norwitz2002-12-311-3/+6
|
* SF patch 658251: Install a C implementation of the Mersenne Twister as theRaymond Hettinger2002-12-291-0/+528
core generator for random.py.