<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Python/random.c, branch v3.6.2</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/random.c?h=v3.6.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Python/random.c?h=v3.6.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2017-01-06T23:07:45Z</updated>
<entry>
<title>Issue #29157: Prefer getrandom() over getentropy()</title>
<updated>2017-01-06T23:07:45Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2017-01-06T23:07:45Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ff558f5aba40bd173f336503def886a12f8db016'/>
<id>urn:sha1:ff558f5aba40bd173f336503def886a12f8db016</id>
<content type='text'>
* dev_urandom() now calls py_getentropy(). Prepare the fallback to support
  getentropy() failure and falls back on reading from /dev/urandom.
* Simplify dev_urandom(). pyurandom() is now responsible to call getentropy()
  or getrandom(). Enhance also dev_urandom() and pyurandom() documentation.
* getrandom() is now preferred over getentropy(). The glibc 2.24 now implements
  getentropy() on Linux using the getrandom() syscall.  But getentropy()
  doesn't support non-blocking mode. Since getrandom() is tried first, it's not
  more needed to explicitly exclude getentropy() on Solaris. Replace:
  "if defined(HAVE_GETENTROPY) &amp;&amp; !defined(sun)"
  with "if defined(HAVE_GETENTROPY)"
* Enhance py_getrandom() documentation. py_getentropy() now supports ENOSYS,
  EPERM &amp; EINTR
</content>
</entry>
<entry>
<title>merge 3.5 (#29057)</title>
<updated>2017-01-02T04:30:26Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2017-01-02T04:30:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=46322587ecb725c99211c3365a7ba2cbfc574403'/>
<id>urn:sha1:46322587ecb725c99211c3365a7ba2cbfc574403</id>
<content type='text'>
</content>
</entry>
<entry>
<title>only include sys/random.h if it seems like it might have something useful (#29057)</title>
<updated>2017-01-02T04:29:36Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2017-01-02T04:29:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=493ac1bbe02a57d08e0f8a76b436626f86b03796'/>
<id>urn:sha1:493ac1bbe02a57d08e0f8a76b436626f86b03796</id>
<content type='text'>
</content>
</entry>
<entry>
<title>merge 3.5 (#28932)</title>
<updated>2016-12-20T07:54:57Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2016-12-20T07:54:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b0eb986eb236c41ebf098233940e038c7b993b9f'/>
<id>urn:sha1:b0eb986eb236c41ebf098233940e038c7b993b9f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>add a specific configure check for sys/random.h (closes #28932)</title>
<updated>2016-12-20T07:54:25Z</updated>
<author>
<name>Benjamin Peterson</name>
<email>benjamin@python.org</email>
</author>
<published>2016-12-20T07:54:25Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fb2ae15c6704a072afeef4786749d9bb2ce7d68d'/>
<id>urn:sha1:fb2ae15c6704a072afeef4786749d9bb2ce7d68d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #28676: merge from 3.5</title>
<updated>2016-11-12T21:38:03Z</updated>
<author>
<name>Ned Deily</name>
<email>nad@python.org</email>
</author>
<published>2016-11-12T21:38:03Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7d895d3c37e2ff5189d2d8b71def4e2fee34f10b'/>
<id>urn:sha1:7d895d3c37e2ff5189d2d8b71def4e2fee34f10b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Issue #28676: Prevent missing 'getentropy' declaration warning on macOS.</title>
<updated>2016-11-12T21:35:48Z</updated>
<author>
<name>Ned Deily</name>
<email>nad@python.org</email>
</author>
<published>2016-11-12T21:35:48Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7ae411264933bfc845c3647cde478508c7981ad3'/>
<id>urn:sha1:7ae411264933bfc845c3647cde478508c7981ad3</id>
<content type='text'>
Patch by Gareth Rees.
</content>
</entry>
<entry>
<title>(Merge 3.5) Catch EPERM error in py_getrandom()</title>
<updated>2016-09-20T20:49:52Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2016-09-20T20:49:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=75024c6589539f72af69ce61cd6493b193989c2d'/>
<id>urn:sha1:75024c6589539f72af69ce61cd6493b193989c2d</id>
<content type='text'>
Issue #27955: Fallback on reading /dev/urandom device when the getrandom()
syscall fails with EPERM, for example when blocked by SECCOMP.
</content>
</entry>
<entry>
<title>Catch EPERM error in py_getrandom()</title>
<updated>2016-09-20T20:46:02Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2016-09-20T20:46:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6d8bc46cc0ebe75d86d00a6ee7c452beea761c42'/>
<id>urn:sha1:6d8bc46cc0ebe75d86d00a6ee7c452beea761c42</id>
<content type='text'>
Issue #27955: Fallback on reading /dev/urandom device when the getrandom()
syscall fails with EPERM, for example when blocked by SECCOMP.
</content>
</entry>
<entry>
<title>Cleanup random.c</title>
<updated>2016-09-20T20:26:18Z</updated>
<author>
<name>Victor Stinner</name>
<email>victor.stinner@gmail.com</email>
</author>
<published>2016-09-20T20:26:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=af59732102e98c9a26b7530e9138c8a63c6495d8'/>
<id>urn:sha1:af59732102e98c9a26b7530e9138c8a63c6495d8</id>
<content type='text'>
Issue #27955: modify py_getrnadom() and dev_urandom()

* Add comments from Python 3.7
* PEP 7 style: add {...}
</content>
</entry>
</feed>
