X-Git-Url: https://git.distorted.org.uk/u/mdw/catacomb/blobdiff_plain/2c52abe67dada5660d30624417ebbd37210922da..07871354bfa8bbbacb6c6a1966f25b596119c146:/tests/lcrand diff --git a/tests/lcrand b/tests/lcrand new file mode 100644 index 0000000..138632b --- /dev/null +++ b/tests/lcrand @@ -0,0 +1,36 @@ +# Test vectors for linear congruential generator +# +# $Id: lcrand,v 1.1 1999/12/10 23:15:28 mdw Exp $ + +lcrand { + + # --- Standard stuff --- + + 0 271828183; + 271828183 996300340; + 996300340 228306184; + 228306184 1171467301; + 1171467301 3265426054; + 3265426054 2636049353; + 2636049353 3799512036; + 3799512036 2414373801; + 2414373801 1059474234; + 1059474234 2734911993; + 2734911993 239668818; + 239668818 1752802481; + 1752802481 34386946; + 34386946 1344553049; + 1344553049 1121833700; + 1121833700 636134543; + + # --- Particular outputs --- + + 2282233179 4294967290; + 2624567577 0; + 2966901975 1; + + # --- Fixed point --- + + 3223959250 3223959250; +} +