<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_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/test/test_random.py?h=v2.4.2</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_random.py?h=v2.4.2'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2004-09-27T15:29:05Z</updated>
<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-04T20:13:29Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-09-04T20:13:29Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=b8717631561fec74cb1ab1963d918e53ead29a97'/>
<id>urn:sha1:b8717631561fec74cb1ab1963d918e53ead29a97</id>
<content type='text'>
* Complete the previous patch by making sure that the MachineRandom
  tests are only run when the underlying resource is available.
</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>Add some tests for corner cases.</title>
<updated>2004-07-09T14:26:18Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2004-07-09T14:26:18Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=5833587d14ed6107ac411ec1c7689fd4ac3b6838'/>
<id>urn:sha1:5833587d14ed6107ac411ec1c7689fd4ac3b6838</id>
<content type='text'>
</content>
</entry>
<entry>
<title>* Migrate set() and frozenset() from the sandbox.</title>
<updated>2003-11-16T16:17:49Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-11-16T16:17:49Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a690a9967e715663b7a421c9ebdad91381cdf1e4'/>
<id>urn:sha1:a690a9967e715663b7a421c9ebdad91381cdf1e4</id>
<content type='text'>
* Install the unittests, docs, newsitem, include file, and makefile update.
* Exercise the new functions whereever sets.py was being used.

Includes the docs for libfuncs.tex.  Separate docs for the types are
forthcoming.
</content>
</entry>
<entry>
<title>SF bug #812202:  randint is always even</title>
<updated>2003-10-05T09:09:15Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-10-05T09:09:15Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=2f726e9093381572b21edbfc42659ea89fbdf686'/>
<id>urn:sha1:2f726e9093381572b21edbfc42659ea89fbdf686</id>
<content type='text'>
* Added C coded getrandbits(k) method that runs in linear time.
* Call the new method from randrange() for ranges &gt;= 2**53.
* Adds a warning for generators not defining getrandbits() whenever they
  have a call to randrange() with too large of a population.
</content>
</entry>
<entry>
<title>SF bug #801342:  Bug (documentation or real, your choice) in random.sample.</title>
<updated>2003-09-06T04:25:54Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-09-06T04:25:54Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=66d09f1b3029d9cf975ccf26c437c9fb2605db91'/>
<id>urn:sha1:66d09f1b3029d9cf975ccf26c437c9fb2605db91</id>
<content type='text'>
random.sample() uses one of two algorithms depending on the ratio of the
sample size to the population size.  One of the algorithms accepted any
iterable population argument so long as it defined __len__().  The other
had a stronger requirement that the population argument be indexable.

While it met the documentation specifications which insisted that the
population argument be a sequence, it made random.sample() less usable
with sets.  So, the second algorithm was modified to coerce non-indexable
iterables and dictionaries into a tuple before proceeding.
</content>
</entry>
<entry>
<title>SF bug #778964:  bad seed in python 2.3 random</title>
<updated>2003-08-09T18:30:57Z</updated>
<author>
<name>Raymond Hettinger</name>
<email>python@rcn.com</email>
</author>
<published>2003-08-09T18:30:57Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=3081d59f920229b26293c7a3ee3f1a9da0da53e9'/>
<id>urn:sha1:3081d59f920229b26293c7a3ee3f1a9da0da53e9</id>
<content type='text'>
The default seed is time.time().
Multiplied by 256 before truncating so that fractional seconds are used.
This way, two successive calls to random.seed() are much more likely
to produce different sequences.
</content>
</entry>
</feed>
