From e73550dc1cbc3e01f09a87b013c9f3c0518f3ba3 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sun, 26 Jul 2020 11:09:13 -0700 Subject: [PATCH] exercise entropy stirring --- tests/test_entropy.py | 2 ++ 1 file changed, 2 insertions(+) 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() -- 2.47.3