X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/7f38dc76ee0809207e67be7b2a2ddc600aba54d5..a90a9c0e9ffe3a1cc1e4fd82d9551903e706e953:/t/t-rand.py diff --git a/t/t-rand.py b/t/t-rand.py index d8d7b00..a45c1d5 100644 --- a/t/t-rand.py +++ b/t/t-rand.py @@ -121,7 +121,10 @@ class TestRandomGenerator (U.TestCase): n = C.MP.loadb(seed) rng = C.DSARand(seed) me.check_rand(rng) - me.assertEqual(rng.seed, (n + 153 + 3).storeb(16)) + if T.MAXFIXNUM == (1 << 31) - 1: steps = 153 + 3 + elif T.MAXFIXNUM == (1 << 63) - 1: steps = 153 + else: steps = None + if steps is not None: me.assertEqual(rng.seed, (n + steps).storeb(16)) def test_bbs(me): ev = T.EventRecorder()