From: Bob Halley Date: Mon, 2 Jan 2017 15:36:59 +0000 (-0800) Subject: Add comment about obsolete nature of EntropyPool. X-Git-Tag: v1.16.0~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af9291929478264852060fdd3f93708ec9d4586d;p=thirdparty%2Fdnspython.git Add comment about obsolete nature of EntropyPool. --- diff --git a/dns/entropy.py b/dns/entropy.py index de7a70a5..64e0b5dd 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