From: Bob Halley Date: Sun, 26 Jul 2020 18:09:13 +0000 (-0700) Subject: exercise entropy stirring X-Git-Tag: v2.1.0rc1~128 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e73550dc1cbc3e01f09a87b013c9f3c0518f3ba3;p=thirdparty%2Fdnspython.git exercise entropy stirring --- diff --git a/tests/test_entropy.py b/tests/test_entropy.py index 828bb685..74092e7e 100644 --- a/tests/test_entropy.py +++ b/tests/test_entropy.py @@ -13,6 +13,8 @@ class EntropyTestCase(unittest.TestCase): self.assertEqual(pool.random_16(), 61532) self.assertEqual(pool.random_32(), 4226376065) self.assertEqual(pool.random_between(10, 50), 29) + # stir in some not-really-entropy to exercise the stir API + pool.stir(b'not-really-entropy') def test_pool_random(self): pool = dns.entropy.EntropyPool()