Commit Graph

158 Commits

Author SHA1 Message Date
Raymond Hettinger
28aa4a0684 Rename weighted_choices() to just choices() 2016-09-07 00:08:44 -07:00
Raymond Hettinger
e8f1e002c6 Issue #18844: Add random.weighted_choices() 2016-09-06 17:15:29 -07:00
Victor Stinner
e66987e626 os.urandom() now blocks on Linux
Issue #27776: The os.urandom() function does now block on Linux 3.17 and newer
until the system urandom entropy pool is initialized to increase the security.

This change is part of the PEP 524.
2016-09-06 16:33:52 -07:00
Raymond Hettinger
6579502c7e Merge 2016-09-04 11:17:48 -07:00
Raymond Hettinger
16eb827b33 Improve docs for random.seed() 2016-09-04 11:17:28 -07:00
Raymond Hettinger
2f9cc7ab0c Minor beautification (turn nested-if into a conjunction). 2016-08-31 23:00:32 -07:00
Raymond Hettinger
112835cb3e Merge 2016-08-31 15:01:28 -07:00
Raymond Hettinger
c7bab7cbf5 Issue #27706: Fix regression in random.seed(somestr, version=1) 2016-08-31 15:01:08 -07:00
Raymond Hettinger
650c1c9ddd Minor beautification 2016-06-25 05:36:42 +03:00
Martin Panter
e26da7c03a Issue #27171: Fix typos in documentation, comments, and test function names 2016-06-02 10:07:09 +00:00
Raymond Hettinger
d58a0b6876 merge 2014-05-25 17:28:38 -07:00
Raymond Hettinger
978c6abced Issue 13355: Make random.triangular degrade gracefully when low == high. 2014-05-25 17:25:27 -07:00
Raymond Hettinger
1f54814094 Improve readability 2014-05-19 20:21:43 +01:00
Raymond Hettinger
23042cda40 Issue #21470: Do a better job seeding the random number generator
to fully cover its state space.
2014-05-13 22:13:40 -07:00
Christian Heimes
f1dc3ee16d Issue #19218: Rename collections.abc to _collections_abc in order to speed up interpreter start 2013-10-13 02:04:20 +02:00
Raymond Hettinger
be74a3d721 Minor clean-up of function parameters in random(). 2013-10-05 21:52:06 -07:00
Raymond Hettinger
8fe47c3991 Minor clean-up of function parameters in random(). 2013-10-05 21:48:21 -07:00
Raymond Hettinger
f77cdbeff7 Issue #19169: Micro refactoring with a micro benefit for brevity and speed. 2013-10-05 17:18:36 -07:00
Senthil Kumaran
f5ce0122ce Removing the merge conflict markers.
- my previous removal and hg resolve mark had still left them and hooks did not catch it too!
2013-09-12 07:06:49 -07:00
Senthil Kumaran
b4055f294e merge from 3.3
Improve the docstring of random.shuffle. Inform users not to provide int arg.
Addresses issue #14927
2013-09-11 22:55:54 -07:00
Senthil Kumaran
f8ce51ab16 Improve the docstring of random.shuffle. Inform users not to provide int arg.
Addresses issue #14927
2013-09-11 22:54:31 -07:00
Serhiy Storchaka
46e1ce214b Issue #18783: Removed existing mentions of Python long type in docstrings,
error messages and comments.
2013-08-27 20:17:03 +03:00
Serhiy Storchaka
9594942716 Issue #18783: Removed existing mentions of Python long type in docstrings,
error messages and comments.
2013-08-27 19:40:23 +03:00
Andrew Svetlov
44e33f39bf Revert changes for #13355 by request from Raymond Hettinger 2013-04-13 18:04:19 +03:00
Andrew Svetlov
b4fd468f12 Revert changes for #13355 by request from Raymond Hettinger 2013-04-13 18:00:04 +03:00