diff --git a/tests/fork_test.py b/tests/fork_test.py index bb15d791..006f0b11 100644 --- a/tests/fork_test.py +++ b/tests/fork_test.py @@ -47,6 +47,8 @@ class ForkTest(testlib.RouterMixin, unittest2.TestCase): self.assertNotEqual(context.call(random_random), random_random()) def test_ssl_module_diverges(self): + # Ensure generator state is initialized. + RAND_pseudo_bytes() context = self.router.fork() self.assertNotEqual(context.call(RAND_pseudo_bytes), RAND_pseudo_bytes())