Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | gh-118131: Command-line interface for the `random` module (#118132) | Hugo van Kemenade | 2024-05-05 |
| | |||
* | Add extra tests for `random.binomialvariate` (gh-112325) | Tian Gao | 2023-11-23 |
| | |||
* | GH-100805: Support numpy.array() in random.choice(). (GH-100830) | Raymond Hettinger | 2023-01-08 |
| | |||
* | GH-100234: Set a default value for random.expovariate() (GH-100235) | Raymond Hettinger | 2022-12-15 |
| | |||
* | GH-81620: Add random.binomialvariate() (GH-94719) | Raymond Hettinger | 2022-07-13 |
| | |||
* | gh-86388 Remove deprecated behaviors in randrange() (#92677) | Raymond Hettinger | 2022-05-11 |
| | |||
* | bpo-46737: Add default arguments to random.gauss and normalvariate (GH-31360) | Zackery Spytz | 2022-02-15 |
| | |||
* | bpo-46624: Defer to 3.12: "Remove deprecated support for non-integer values" ↵ | Miro Hrončok | 2022-02-03 |
| | | | | (GH-31098) | ||
* | bpo-40280: Add requires_fork test helper (GH-30622) | Christian Heimes | 2022-01-16 |
| | |||
* | Move error test to the function that needs it. Improve error message. ↵ | Raymond Hettinger | 2021-12-09 |
| | | | | (GH-30008) | ||
* | bpo-42222: Improve tests for invalid argument types in randrange() (GH-29021) | Serhiy Storchaka | 2021-10-19 |
| | |||
* | bpo-42222: Remove deprecated support for non-integer values (GH-28983) | Raymond Hettinger | 2021-10-16 |
| | |||
* | bpo-44260: Do not read system entropy without need in Random() (GH-26455) | Serhiy Storchaka | 2021-05-31 |
| | |||
* | bpo-40465: Remove random module features deprecated in 3.9 (GH-25874) | Raymond Hettinger | 2021-05-04 |
| | |||
* | bpo-44018: random.seed() no longer mutates its inputs (GH-25856) | Raymond Hettinger | 2021-05-03 |
| | |||
* | bpo-37319: Improve documentation, code and tests of randrange. (GH-19112) | Serhiy Storchaka | 2021-01-25 |
| | |||
* | bpo-42944 Fix Random.sample when counts is not None (GH-24235) | jonanifranco | 2021-01-18 |
| | |||
* | bpo-42772: Step argument ignored when stop is None. (GH-24018) | Raymond Hettinger | 2021-01-02 |
| | |||
* | bpo-42222: Modernize integer test/conversion in randrange() (#23064) | Raymond Hettinger | 2020-12-28 |
| | |||
* | bpo-42008: Fix internal _random.Random() seeding for the one argument case ↵ | AMIR | 2020-12-21 |
| | | | | (GH-22668) | ||
* | bpo-42470: Do not warn on sequences which are also sets in random.sample() ↵ | masklinn | 2020-12-18 |
| | | | | (GH-23665) | ||
* | bpo-41773: Raise exception for non-finite weights in random.choices(). ↵ | Ram Rachum | 2020-09-28 |
| | | | | (GH-22441) | ||
* | bpo-41052: Opt out serialization/deserialization for _random.Random (GH-21002) | Dong-hee Na | 2020-06-21 |
| | |||
* | bpo-40541: Add optional *counts* parameter to random.sample() (GH-19970) | Raymond Hettinger | 2020-05-08 |
| | |||
* | bpo-40465: Deprecate the optional argument to random.shuffle(). (#19867) | Raymond Hettinger | 2020-05-02 |
| | |||
* | Simplify choice()'s interaction with the private _randbelow() method (GH-19831) | Raymond Hettinger | 2020-05-01 |
| | |||
* | bpo-40325: Deprecate set object support in random.sample() (GH-19591) | Raymond Hettinger | 2020-04-19 |
| | |||
* | bpo-40286: Makes simpler the relation between randbytes() and getrandbits() ↵ | Serhiy Storchaka | 2020-04-17 |
| | | | | (GH-19574) | ||
* | bpo-40282: Allow random.getrandbits(0) (GH-19539) | Antoine Pitrou | 2020-04-17 |
| | |||
* | bpo-40286: Add randbytes() method to random.Random (GH-19527) | Victor Stinner | 2020-04-17 |
| | | | | | | | | | | | | Add random.randbytes() function and random.Random.randbytes() method to generate random bytes. Modify secrets.token_bytes() to use SystemRandom.randbytes() rather than calling directly os.urandom(). Rename also genrand_int32() to genrand_uint32(), since it returns an unsigned 32-bit integer, not a signed integer. The _random module is now built with Py_BUILD_CORE_MODULE defined. | ||
* | bpo-40094: Add test.support.wait_process() (GH-19254) | Victor Stinner | 2020-03-31 |
| | | | | | | | | | Moreover, the following tests now check the child process exit code: * test_os.PtyTests * test_mailbox.test_lock_conflict() * test_tempfile.test_process_awareness() * test_uuid.testIssue8621() * multiprocessing resource tracker tests | ||
* | bpo-38075: Fix random_seed(): use PyObject_CallOneArg() (GH-18897) | Victor Stinner | 2020-03-10 |
| | | | | | | Fix the random.Random.seed() method when a bool is passed as the seed. PyObject_Vectorcall() was misused: use PyObject_CallOneArg() instead. | ||
* | bpo-38881: choices() raises ValueError when all weights are zero (GH-17362) | Raymond Hettinger | 2019-11-23 |
| | |||
* | bpo-38120: Fix DeprecationWarning in test_random for invalid type of ↵ | Xtreak | 2019-09-12 |
| | | | | arguments to random.seed. (GH-15987) | ||
* | Fix typos in docs, comments and test assert messages (#14872) | Min ho Kim | 2019-07-21 |
| | |||
* | bpo-36766: Typos in docs and code comments (GH-13116) | penguindustin | 2019-05-06 |
| | |||
* | bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929) | Serhiy Storchaka | 2019-03-05 |
| | |||
* | bpo-30561: Sync-up expovariate() and gammavariate code (GH-1934) | leodema | 2018-12-23 |
| | |||
* | bpo-24567: Random subnormal.diff (#7954) | Raymond Hettinger | 2018-06-27 |
| | | | | | Handle subnormal weights for choices() | ||
* | bpo-33144: Fix choosing random.Random._randbelow implementation. (GH-6563) | Serhiy Storchaka | 2018-05-08 |
| | | | | random() takes precedence over getrandbits() if defined later in the class tree. | ||
* | bpo-33144: random.Random and subclasses: split _randbelow implementation ↵ | Wolfgang Maier | 2018-04-17 |
| | | | | (GH-6291) | ||
* | bpo-33203: Ensure random.choice always raises IndexError on empty sequence ↵ | Wolfgang Maier | 2018-04-05 |
| | | | | | | (GH-6338) | ||
* | bpo-32297: Few misspellings found in Python source code comments. (#4803) | Mike | 2017-12-14 |
| | | | | | | | | * Fix multiple typos in code comments * Add spacing in comments (test_logging.py, test_math.py) * Fix spaces at the beginning of comments in test_logging.py | ||
* | bpo-31478: Fix an assertion failure in random.seed() in case a seed has a ↵ | Oren Milman | 2017-09-28 |
| | | | | bad __abs__() method. (#3596) | ||
* | bpo-31482: Missing bytes support for random.seed() version 1 (#3614) | Raymond Hettinger | 2017-09-17 |
| | | | bpo-31482: Missing bytes support for random.seed() version 1 #3614 | ||
* | bpo-31160: Fix test_random for zombie process (#3045) | Victor Stinner | 2017-08-09 |
| | | | | TestModule.test_after_fork() now calls os.waitpid() to read the exit status of the child process to avoid creating a zombie process. | ||
* | bpo-16500: Allow registering at-fork handlers (#1715) | Antoine Pitrou | 2017-05-27 |
| | | | | | | | | | | | | * bpo-16500: Allow registering at-fork handlers * Address Serhiy's comments * Add doc for new C API * Add doc for new Python-facing function * Add NEWS entry + doc nit | ||
* | bpo-30308: Code coverage for argument in random.shuffle (#1504) | csabella | 2017-05-11 |
| | | | | | | | | * bpo-30308: Code coverage for argument in random.shuffle * bpo-30308: Code coverage for argument in random.shuffle * bpo-30308: Code coverage for argument in random.shuffle | ||
* | bpo-29960 _random.Random corrupted on exception in setstate(). (#1019) | bladebryan | 2017-04-22 |
| | |||
* | merge | Raymond Hettinger | 2016-11-21 |
|\ |