summaryrefslogtreecommitdiff
path: root/dns/entropy.py
diff options
context:
space:
mode:
authorBob Halley <halley@nominum.com>2009-06-23 18:23:46 +0100
committerBob Halley <halley@nominum.com>2009-06-23 18:23:46 +0100
commitcd9547c33612e6992c598b61359dfe46a0f56ab6 (patch)
treef11a94a43f24d1f14b6fa509080da10565cad1df /dns/entropy.py
parent1451d63c171e1735aa5694b2dc7e400c5c0263d2 (diff)
downloaddnspython-cd9547c33612e6992c598b61359dfe46a0f56ab6.tar.gz
Open /dev/random unbuffered
Diffstat (limited to 'dns/entropy.py')
-rw-r--r--dns/entropy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/entropy.py b/dns/entropy.py
index ecbb48d..83262f4 100644
--- a/dns/entropy.py
+++ b/dns/entropy.py
@@ -22,7 +22,7 @@ class EntropyPool(object):
self.next_byte = 0
if seed is None:
try:
- r = file('/dev/random')
+ r = file('/dev/random', 'r', 0)
try:
seed = r.read(16)
finally: