summaryrefslogtreecommitdiff
path: root/dns/entropy.py
Commit message (Collapse)AuthorAgeFilesLines
* further improve entropy coverageBob Halley2020-06-181-1/+1
|
* improve entropy coverageBob Halley2020-06-181-2/+2
|
* Minor Python 3 cleanups.Brian Wellington2020-06-031-1/+1
| | | | | | | Classes inherit from object by default; there's no need to explicitly include this. Replace super(Foo, self) with super().
* de-lint: remove unused importBob Halley2020-05-021-1/+0
|
* Use context managers to simplify code.Brian Wellington2020-05-011-24/+17
| | | | | | | | Simplify code using try/finally to use context managers. In some cases, contextlib.ExitStack() is used; this could probably be further simplified to use contextlib.nullcontext() once Python 3.7+ is a requirement.
* remove obsolete entropy pool hash import logicBob Halley2020-05-011-14/+4
|
* Remove _compat module.Bob Halley2018-12-091-4/+3
|
* update copyrightBob Halley2018-12-011-0/+2
|
* Add comment about obsolete nature of EntropyPool.Bob Halley2017-01-021-1/+6
|
* Pylint: remove bare exceptsMartin2016-08-311-3/+3
| | | | Bare excepts should not be used, because they may hide system exceptions such as KeyboardInterupts or SystemExits.
* Use random.SystemRandom when available.Bob Halley2016-08-041-3/+13
|
* Reseed entropy pool after forkingAvram Lubkin2016-07-261-1/+5
|
* Pylint: enable superfluous-parens checkMartin Basti2016-06-271-1/+1
|
* Pylint: enable import-error checkMartin Basti2016-06-271-3/+3
|
* python3 supportArthur Gautier2016-04-211-14/+18
| | | | Signed-off-by: Arthur Gautier <baloo@gandi.net>
* clean Tabdv2015-03-021-1/+1
|
* update copyrightsBob Halley2011-05-121-1/+1
|
* create exceptions with arguments as "raise E(args)" instead of "raise E, args"Bob Halley2010-01-141-1/+1
|
* Try using os.urandom() to get the seed.Bob Halley2009-11-131-10/+23
| | | | | | | Lock access to the entropy pool to avoid races in multithreaded situations. If a seed wasn't supplied, don't do the seeding operation until someone actually wants to get random numbers.
* Entropy getting and stirring need lockingBob Halley2009-09-161-16/+31
|
* Open /dev/random unbufferedBob Halley2009-06-231-1/+1
|
* update copyrightsBob Halley2009-06-181-1/+1
|
* add entropy moduleBob Halley2008-10-081-0/+95