Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-40286: Add randbytes() method to random.Random (GH-19527) | Victor Stinner | 2020-04-17 | 1 | -2/+1 |
| | | | | | | | | | | | | 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. | ||||
* | Issue #29061: secrets.randbelow() would hang with a negative input | Raymond Hettinger | 2016-12-30 | 1 | -0/+2 |
| | |||||
* | Shorten secrets module docstring, add function docstrings. | Steven D'Aprano | 2016-04-17 | 1 | -76/+30 |
| | |||||
* | Remove python fallback for compare_digest. | Steven D'Aprano | 2016-04-15 | 1 | -32/+1 |
| | | | | | See https://mail.python.org/pipermail/python-dev/2016-April/144198.html https://mail.python.org/pipermail/python-dev/2016-April/144203.html | ||||
* | run Tools/reindent.py on secrets.py to satisfy the checkwhitespace hook | Steven D'Aprano | 2016-04-14 | 1 | -1/+0 |
| | |||||
* | Add secrets module and tests. | Steven D'Aprano | 2016-04-14 | 1 | -0/+149 |