<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/random.py, branch v2.4.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/random.py?h=v2.4.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/random.py?h=v2.4.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2005-09-15T18:07:11Z</updated>
<entry>
<title>Sync-up with head except for 1.72 which is Py2.5 specific.</title>
<updated>2005-09-15T18:07:11Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2005-09-15T18:07:11Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=75634db73f2444771c76ae181794aba84c9b3df4'/>
<id>urn:sha1:75634db73f2444771c76ae181794aba84c9b3df4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use floor division operator.</title>
<updated>2004-09-27T15:29:05Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-09-27T15:29:05Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=ffdb8bb99c4017152a9dca70669f9d6b9831d454'/>
<id>urn:sha1:ffdb8bb99c4017152a9dca70669f9d6b9831d454</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF #1027105:  HardwareRandom should be renamed OSRandom</title>
<updated>2004-09-13T22:23:21Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-09-13T22:23:21Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=23f1241dc6495eb255e1a389aef204a3e35a2632'/>
<id>urn:sha1:23f1241dc6495eb255e1a389aef204a3e35a2632</id>
<content type='text'>
Renamed the new generator at Trevor's recommendation.
The name HardwareRandom suggested a bit more than it
delivered (no radioactive decay detectors or such).
</content>
</entry>
<entry>
<title>Fulfill Martin's request to use try/except rather than a "look before</title>
<updated>2004-09-05T00:00:42Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-09-05T00:00:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=c1c43cad63a88eae694b174c9a0fe6242dd5972b'/>
<id>urn:sha1:c1c43cad63a88eae694b174c9a0fe6242dd5972b</id>
<content type='text'>
you leap" approach.  Makes the early call to os.urandom() unnecessary.
</content>
</entry>
<entry>
<title>SF bug #1022010:  Import random fails</title>
<updated>2004-09-03T19:09:22Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-09-03T19:09:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=bdbdfd731dc2bf4b5490254c0df4b7c7e90ef751'/>
<id>urn:sha1:bdbdfd731dc2bf4b5490254c0df4b7c7e90ef751</id>
<content type='text'>
* trap NotImplementedError raised by os.urandom calls when not available
  on a particular system.
</content>
</entry>
<entry>
<title>HardwareRandom:  Go back to multiplying by 2**-BPF instead of using</title>
<updated>2004-08-31T02:19:55Z</updated>
<author>
<name>Tim Peters</name>
<email>tim.peters@gmail.com</email>
</author>
<published>2004-08-31T02:19:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=7c2a85b2d44851c2442ade579b760f86447bf848'/>
<id>urn:sha1:7c2a85b2d44851c2442ade579b760f86447bf848</id>
<content type='text'>
ldexp.  Both methods are exact, and return the same results.  Turns out
multiplication is a few (but just a few) percent faster on my box.
They're both significantly faster than using struct with a Q format
to convert bytes to a 64-bit long (struct.unpack() appears to lose due
to the tuple creation/teardown overhead), and calling _hexlify is
significantly faster than doing bytes.encode('hex').  So we appear to
have hit a local minimum (wrt speed) here.
</content>
</entry>
<entry>
<title>Take advantage of the math library's ldexp for assembling a float by</title>
<updated>2004-08-31T01:05:15Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-08-31T01:05:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3fa19d7ff89be87139e2864fb9186b424d180a58'/>
<id>urn:sha1:3fa19d7ff89be87139e2864fb9186b424d180a58</id>
<content type='text'>
components without division and without roundoff error for properly
sized mantissas (i.e. on systems with 53 or more mantissa bits per
float).  Eliminates the previous implementation's rounding bias as
aptly demonstrated by Tim Peters.
</content>
</entry>
<entry>
<title>Teach the random module about os.urandom().</title>
<updated>2004-08-30T06:14:31Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-08-30T06:14:31Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=356a4599acd4c835ab88c221bd5da073c9895e83'/>
<id>urn:sha1:356a4599acd4c835ab88c221bd5da073c9895e83</id>
<content type='text'>
* Use it for seeding when it is available.
* Provide an alternate generator based on it.
</content>
</entry>
<entry>
<title>Fix typo in comment.</title>
<updated>2004-06-07T02:07:15Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-06-07T02:07:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5dae505bbd59641a948c81bea981e7c44d4c2343'/>
<id>urn:sha1:5dae505bbd59641a948c81bea981e7c44d4c2343</id>
<content type='text'>
</content>
</entry>
<entry>
<title>SF bug #964230:  random.choice([]) should return more intelligible exception</title>
<updated>2004-06-05T14:53:22Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-06-05T14:53:22Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9021c955951c63ef3075b4751615af329427d3ec'/>
<id>urn:sha1:9021c955951c63ef3075b4751615af329427d3ec</id>
<content type='text'>
Add a comment to make the traceback less mysterious.
</content>
</entry>
</feed>
