summaryrefslogtreecommitdiff
path: root/OpenSSL/rand.py
Commit message (Collapse)AuthorAgeFilesLines
* Move package into srcHynek Schlawack2015-10-171-174/+0
| | | | Prevents accidental imports when running tests.
* Start whacking at newline counts for flake8Alex Gaynor2015-09-051-7/+0
|
* a random set of flake8 and typo fixesAlex Gaynor2015-09-041-0/+1
|
* Add some missing type documentation and remove an unused import.Jean-Paul Calderone2015-04-131-4/+6
|
* Introduce an encoding helper and exercise it with some non-ascii paths in ↵Jean-Paul Calderone2015-04-111-6/+4
| | | | | | the rand module tests. Does it make sense? I dunno.
* Shorten str type checksSam Whited2015-01-061-2/+2
|
* Fix issue with string type check in python3Sam Whited2015-01-051-2/+2
|
* Lots of Python 3.2 porting workJean-Paul Calderone2014-01-111-6/+2
|
* bytes for filenames elsewhere, too.Jean-Paul Calderone2014-01-111-2/+2
|
* Enforce byte strings, not native strings.Jean-Paul Calderone2014-01-111-2/+2
|
* Avoid using `long` if it does not exist.Jean-Paul Calderone2014-01-111-1/+7
|
* this __builtin__ thing is not Python 3 compatible, apparentlyJean-Paul Calderone2014-01-091-4/+4
|
* Make this test more 32 bit friendly: allocate the most memory that fits into ↵Jean-Paul Calderone2013-12-311-1/+1
| | | | | | | a native integer. This will avoid triggering an OverflowError on 32 bit platforms but still be more memory than can ever actually be allocated. Also fix the implementation to accept Python longs as well as Python ints.
* add some missing docstringsJean-Paul Calderone2013-12-291-1/+3
|
* Put some shared code into a shared module and start using it from all three ↵Jean-Paul Calderone2013-12-291-5/+12
| | | | | | | of the main implementation modules. Also add a test for the MemoryError behavior of OpenSSL.rand.bytes. Also make the other error handling behavior of that function probably correct maybe. At least, give it a better comment about why it is untested.
* Switch from opentls to cryptographyJean-Paul Calderone2013-12-281-14/+16
|
* Re-implement OpenSSL.rand in Python using opentls.Jean-Paul Calderone2013-02-091-0/+167