about summary refs log tree commit diff
path: root/generator/ppmpat.c
diff options
context:
space:
mode:
Diffstat (limited to 'generator/ppmpat.c')
-rw-r--r--generator/ppmpat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generator/ppmpat.c b/generator/ppmpat.c
index 343100d5..7650bd01 100644
--- a/generator/ppmpat.c
+++ b/generator/ppmpat.c
@@ -1006,7 +1006,7 @@ main(int argc, char ** argv) {
     if ( argn != argc )
         pm_usage( usage);
 
-    srand( (int) ( time( 0 ) ^ getpid( ) ) );
+    srand(pm_randseed());
     pixels = ppm_allocarray( cols, rows );
 
     switch ( pattern )