From 092aff8628741b38b1e4000370d219b82555169d Mon Sep 17 00:00:00 2001
From: Martin Braun <martin.braun@ettus.com>
Date: Tue, 18 Dec 2018 16:42:48 -0800
Subject: qa: Use random.seed(0) everywhere import random is used

This affects all Python-based unit tests which use the Python random
module. If they do, this change adds random.seed(0) to every setUp()
call, so that all QA runs are reproducible.
---
 gr-digital/python/digital/qa_pfb_clock_sync.py | 1 +
 1 file changed, 1 insertion(+)

(limited to 'gr-digital/python/digital/qa_pfb_clock_sync.py')

diff --git a/gr-digital/python/digital/qa_pfb_clock_sync.py b/gr-digital/python/digital/qa_pfb_clock_sync.py
index 77980d19e5..3f07b328c9 100644
--- a/gr-digital/python/digital/qa_pfb_clock_sync.py
+++ b/gr-digital/python/digital/qa_pfb_clock_sync.py
@@ -31,6 +31,7 @@ from gnuradio import gr, gr_unittest, filter, digital, blocks
 class test_pfb_clock_sync(gr_unittest.TestCase):
 
     def setUp(self):
+        random.seed(0)
         self.tb = gr.top_block()
 
     def tearDown(self):
-- 
cgit v1.2.3