X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-python/blobdiff_plain/553d59fec08fd9102b21fd0dc83ba708862a6090..8ebc32d8616aeac9892d20cebfbdc1b531b29d2c:/t/t-rand.py?ds=sidebyside 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()