From 2d27ab85dce51f3e69579d55ea251c8c58468ec3 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 10 Jul 2018 20:50:04 +0200 Subject: [PATCH] tests: make acceptable delta wider in test_trezor.crypto.random --- tests/test_trezor.crypto.random.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_trezor.crypto.random.py b/tests/test_trezor.crypto.random.py index 52bce3d628..d05a1179a8 100644 --- a/tests/test_trezor.crypto.random.py +++ b/tests/test_trezor.crypto.random.py @@ -13,7 +13,7 @@ class TestCryptoRandom(unittest.TestCase): r = random.uniform(15) c[r] += 1 for i in range(15): - self.assertAlmostEqual(c[r], 1000, delta=150) + self.assertAlmostEqual(c[r], 1000, delta=200) def test_bytes_length(self): for l in range(1024 + 1): @@ -34,7 +34,7 @@ class TestCryptoRandom(unittest.TestCase): for h in hexlify(b): c[chr(h)] += 1 for h in '0123456789abcdef': - self.assertAlmostEqual(c[h], 1000, delta=150) + self.assertAlmostEqual(c[h], 1000, delta=200) def test_shuffle(self): for l in range(256 + 1):