]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
Add comment about obsolete nature of EntropyPool.
authorBob Halley <halley@dnspython.org>
Mon, 2 Jan 2017 15:36:59 +0000 (07:36 -0800)
committerBob Halley <halley@dnspython.org>
Mon, 2 Jan 2017 15:36:59 +0000 (07:36 -0800)
dns/entropy.py

index de7a70a5133484ac57f64f9b9295102ea077db88..64e0b5dd4a973d23354c5be46f742bb76939d500 100644 (file)
@@ -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