From af9291929478264852060fdd3f93708ec9d4586d Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Mon, 2 Jan 2017 07:36:59 -0800 Subject: [PATCH] Add comment about obsolete nature of EntropyPool. --- dns/entropy.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- 2.47.3