about summary refs log tree commit diff
path: root/test/ppmpat-random.test
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2021-03-23 23:42:47 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2021-03-23 23:42:47 +0000
commitc99a377d51e2980dcd4766b533c2d05d5293e756 (patch)
treeb54f4b12dd6b7135a1f8d215f839b717feb30992 /test/ppmpat-random.test
parent7b8f9eec8c0936fea2b2b87f8652246a665d2998 (diff)
downloadnetpbm-mirror-c99a377d51e2980dcd4766b533c2d05d5293e756.tar.gz
netpbm-mirror-c99a377d51e2980dcd4766b533c2d05d5293e756.tar.xz
netpbm-mirror-c99a377d51e2980dcd4766b533c2d05d5293e756.zip
random number tests et al
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4060 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'test/ppmpat-random.test')
-rwxr-xr-xtest/ppmpat-random.test18
1 files changed, 12 insertions, 6 deletions
diff --git a/test/ppmpat-random.test b/test/ppmpat-random.test
index a6daa982..44dd2485 100755
--- a/test/ppmpat-random.test
+++ b/test/ppmpat-random.test
@@ -7,16 +7,22 @@
 
 # These tests require random numbers.
 
-# Test 1. Should print: 2219119109 36015 (glibc)
-#                       3606254242 36015 (MAC OS)
+echo "Test 1. Should print: 1366170000 36015" # Mersenne Twister
+#                           2219119109 36015 (glibc rand())
+#                           3606254242 36015 (MAC OS rand())
+
 ppmpat --randomseed=0 -camo 100 120 | cksum
 
-# Test 2. Should print: 3436846137 16813 (glibc)
-#                       3615722579 16813 (MAC OS)
+echo "Test 2. Should print: 4073196212 16813" # Mersenne Twister
+#                       3436846137 16813 (glibc)
+#                       3615722579 16813 (MAC OS rand())
+
 ppmpat --randomseed=0 -anticamo 80 70 | cksum
 
-# Test 3. Should print: 908097729 16813 (glibc)
-#                       1756684515 16813 (MAC OS)
+echo "Test 3. Should print: 2292015301 16813" # Mersenne Twister 
+#                       908097729 16813 (glibc rand())
+#                       1756684515 16813 (MAC OS rand())
+
 ppmpat --randomseed=0 --color \
   rgb:55/c0/34,rgb:0/ff/0,rgb:0/ee/0,rgb:0/cd/0,rgb:0/8b/0,rgb:4f/4f/2f \
   -camo 80 70 | cksum