diff options
author | Bob Halley <halley@dnspython.org> | 2017-01-02 07:36:59 -0800 |
---|---|---|
committer | Bob Halley <halley@dnspython.org> | 2017-01-02 07:36:59 -0800 |
commit | af9291929478264852060fdd3f93708ec9d4586d (patch) | |
tree | 3dda5d5b3f07927fd7f500a4e0d7cb62406975b8 /dns/entropy.py | |
parent | f710a42e2e5c3443adb288ab40a66d2b5a636284 (diff) | |
download | dnspython-af9291929478264852060fdd3f93708ec9d4586d.tar.gz |
Add comment about obsolete nature of EntropyPool.
Diffstat (limited to 'dns/entropy.py')
-rw-r--r-- | dns/entropy.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/dns/entropy.py b/dns/entropy.py index de7a70a..64e0b5d 100644 --- a/dns/entropy.py +++ b/dns/entropy.py @@ -1,4 +1,4 @@ -# Copyright (C) 2009, 2011 Nominum, Inc. +# Copyright (C) 2009-2017 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, @@ -25,6 +25,11 @@ except ImportError: class EntropyPool(object): + # This is an entropy pool for Python implementations that do not + # have a working SystemRandom. I'm not sure there are any, but + # leaving this code doesn't hurt anything as the library code + # is used if present. + def __init__(self, seed=None): self.pool_index = 0 self.digest = None |