summaryrefslogtreecommitdiffstats
path: root/Python/random.c
Commit message (Expand)AuthorAgeFilesLines
* Issue #29157: enhance py_getrandom() documentationVictor Stinner2017-01-061-13/+20
* py_getentropy() now supports ENOSYS, EPERM & EINTRVictor Stinner2017-01-061-3/+39
* Issue #29157: getrandom() is now preferred over getentropy()Victor Stinner2017-01-061-44/+47
* Issue #29157: Simplify dev_urandom()Victor Stinner2017-01-061-29/+87
* Issue #29157: dev_urandom() now calls py_getentropy()Victor Stinner2017-01-061-20/+16
* merge 3.5 (#29057)Benjamin Peterson2017-01-021-1/+1
|\
| * only include sys/random.h if it seems like it might have something useful (#2...Benjamin Peterson2017-01-021-1/+1
* | merge 3.5 (#28932)Benjamin Peterson2016-12-201-1/+1
|\ \ | |/
| * add a specific configure check for sys/random.h (closes #28932)Benjamin Peterson2016-12-201-1/+1
* | Issue #28676: merge from 3.5Ned Deily2016-11-121-2/+3
|\ \ | |/
| * Issue #28676: Prevent missing 'getentropy' declaration warning on macOS.Ned Deily2016-11-121-2/+3
* | (Merge 3.5) Catch EPERM error in py_getrandom()Victor Stinner2016-09-201-8/+11
|\ \ | |/
| * Catch EPERM error in py_getrandom()Victor Stinner2016-09-201-7/+8
| * Cleanup random.cVictor Stinner2016-09-201-28/+53
* | os.urandom() now blocks on LinuxVictor Stinner2016-09-061-31/+46
* | Issue #27776: dev_urandom(raise=0) now closes the file descriptor on errorVictor Stinner2016-08-161-0/+1
* | Issue #27776: Cleanup random.cVictor Stinner2016-08-161-121/+110
* | Issue #27776: _PyRandom_Init() doesn't call PyErr_CheckSignals() anymoreVictor Stinner2016-08-161-3/+6
* | Issue #27776: Cleanup random.cVictor Stinner2016-08-161-55/+74
* | Issue #17596: MINGW: add wincrypt.h in Python/random.cMartin Panter2016-07-291-0/+3
* | Merge 3.5Victor Stinner2016-06-161-2/+2
|\ \ | |/
| * py_getrandom(): use long type for the syscall() resultVictor Stinner2016-06-161-2/+2
* | Merge 3.5Victor Stinner2016-06-141-1/+1
|\ \ | |/
| * cleanup random.cVictor Stinner2016-06-141-1/+1
* | Merge 3.5 (os.urandom, issue #27278)Victor Stinner2016-06-141-1/+1
|\ \ | |/
| * Fix os.urandom() using getrandom() on LinuxVictor Stinner2016-06-141-1/+1
* | Merge comment fix from 3.5Martin Panter2016-06-101-2/+2
|\ \ | |/
| * Fix typo and move comment to appropriate conditionMartin Panter2016-06-101-2/+2
* | py_getrandom(): use char* instead of void* for the destinationVictor Stinner2016-06-081-5/+8
* | Merge 3.5 (os.urandom)Victor Stinner2016-06-071-3/+21
|\ \ | |/
| * os.urandom() doesn't block on Linux anymoreVictor Stinner2016-06-071-3/+21
* | Merge 3.5 (os.urandom)Victor Stinner2016-04-121-5/+12
|\ \ | |/
| * Fix os.urandom() on Solaris 11.3Victor Stinner2016-04-121-5/+12
* | Issue #25558: Use compile-time asserts.Serhiy Storchaka2015-11-071-1/+1
|/
* Merge 3.4 (os.urandom)Victor Stinner2015-10-011-0/+2
|\
| * Issue #25003: os.urandom() doesn't use getentropy() on Solaris becauseVictor Stinner2015-10-011-4/+8
* | Issue #25003: On Solaris 11.3 or newer, os.urandom() now uses the getrandom()Victor Stinner2015-10-011-15/+34
* | py_getrandom(): getrandom() *can* return EINTRVictor Stinner2015-07-301-1/+0
* | (Merge 3.4) Issue #22585: os.urandom() now releases the GIL when theVictor Stinner2015-03-301-6/+14
|\ \ | |/
| * Issue #22585: os.urandom() now releases the GIL when the getentropy() is usedVictor Stinner2015-03-301-6/+14
| * Issue #22585: On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(),Victor Stinner2014-12-211-7/+41
* | Issue #22181: os.urandom() now releases the GIL when the getrandom()Victor Stinner2015-03-301-2/+11
* | Issue #23752: _Py_fstat() is now responsible to raise the Python exceptionVictor Stinner2015-03-301-2/+1
* | Issue #23707: On UNIX, os.urandom() now calls the Python signal handler whenVictor Stinner2015-03-191-19/+11
* | Issue #22181: Fix dev_urandom_noraise(), try calling py_getrandom() beforeVictor Stinner2015-03-191-4/+4
* | Issue #22181: The availability of the getrandom() is now checked in configure,Victor Stinner2015-03-191-8/+5
* | Issue #22181: On Linux, os.urandom() now uses the new getrandom() syscall ifVictor Stinner2015-03-181-6/+84
* | Issue #23694: Enhance _Py_open(), it now raises exceptionsVictor Stinner2015-03-171-7/+3
* | Issue #23152: Implement _Py_fstat() to support files larger than 2 GB on Wind...Steve Dower2015-02-211-3/+3
* | Issue #22585: On OpenBSD 5.6 and newer, os.urandom() now calls getentropy(),Victor Stinner2014-12-211-4/+35