Rearrange the file tree.
[u/mdw/catacomb] / rand / t / lcrand
diff --git a/rand/t/lcrand b/rand/t/lcrand
new file mode 100644 (file)
index 0000000..6cc9dce
--- /dev/null
@@ -0,0 +1,32 @@
+# Test vectors for linear congruential generator
+
+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;
+}