Victor Stinner
01bdbad3e9
Don't use getentropy() on Linux
...
Issue #29188 : Support glibc 2.24 on Linux: don't use getentropy() function but
read from /dev/urandom to get random bytes, for example in os.urandom(). On
Linux, getentropy() is implemented which getrandom() is blocking mode, whereas
os.urandom() should not block.
2017-01-09 11:10:41 +01:00
Benjamin Peterson
2f7d13c662
only include sys/random.h if it seems like it might have something useful ( #29057 )
2017-01-01 22:29:36 -06:00
Benjamin Peterson
6b1c909c08
add a specific configure check for sys/random.h ( closes #28932 )
2016-12-19 23:54:25 -08:00
Ned Deily
09231e657a
Issue #28676 : Prevent missing 'getentropy' declaration warning on macOS.
...
Initial patch by Gareth Rees.
2016-11-12 16:34:25 -05:00
Martin Panter
7740c406bc
Fix typo in comment
2016-06-10 08:07:11 +00:00
Victor Stinner
a87633e596
Issue #25003 : os.urandom() doesn't use getentropy() on Solaris because
...
getentropy() is blocking, whereas os.urandom() should not block. getentropy()
is supported since Solaris 11.3.
2015-10-01 09:57:26 +02:00
Victor Stinner
e9932451ae
Issue #23115 : os.urandom() now releases the GIL when the getentropy() is used
...
(OpenBSD 5.6+).
2015-03-30 11:22:13 +02:00
Victor Stinner
e0a0bd6eaa
Issue #23458 : On POSIX, the file descriptor kept open by os.urandom() is now
...
set to non inheritable
2015-02-24 14:30:43 +01:00
Serhiy Storchaka
e8d750c05b
Issue #23115 : Fixed compilation on OpenBSD (Py_MIN is not defined in 2.7).
2015-02-16 08:05:10 +02:00
Benjamin Peterson
27c269a1fe
use getentropy when available (backport of 75ede5bec8db) ( closes #23115 )
2014-12-26 11:09:00 -06:00
Serhiy Storchaka
0f8f784a77
Removed duplicated words in in comments and docs.
2014-12-01 18:16:30 +02:00
Benjamin Peterson
57057a6624
PEP 466: backport persistent urandom fd ( closes #21305 )
...
Patch from Alex Gaynor.
2014-08-28 12:30:00 -04:00
Georg Brandl
c0edadee84
Closes #15213 : update comment for _PyOS_URandom
2013-10-06 18:43:19 +02:00
Antoine Pitrou
f48a67b317
Issue #18756 : Improve error reporting in os.urandom() when the failure is due to something else than /dev/urandom not existing.
2013-08-16 20:44:38 +02:00
Antoine Pitrou
e299cae230
Issue #15340 : Fix importing the random module when /dev/urandom cannot be opened.
...
This was a regression caused by the hash randomization patch.
2012-09-07 23:49:07 +02:00
Benjamin Peterson
26da920001
ensure no one tries to hash things before the random seed is found
2012-02-21 11:08:50 -05:00
Barry Warsaw
1e13eb084f
- Issue #13703 : oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
...
environment variable, to provide an opt-in way to protect against denial of
service attacks due to hash collisions within the dict and set types. Patch
by David Malcolm, based on work by Victor Stinner.
2012-02-20 20:42:21 -05:00