]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
exercise entropy stirring
authorBob Halley <halley@dnspython.org>
Sun, 26 Jul 2020 18:09:13 +0000 (11:09 -0700)
committerBob Halley <halley@dnspython.org>
Sun, 26 Jul 2020 18:09:13 +0000 (11:09 -0700)
tests/test_entropy.py

index 828bb68549c753f84320512f7d8f13813e1d9182..74092e7e6b57c6e7d68959c0d6fef3cd5d4b6d3d 100644 (file)
@@ -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()