X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/2a3f4da1c95d71e6045ddf1617754bacddfd46c3..eac76e373dda292d970171d20df3402ee997d027:/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()