Index: trunk/psphot/src/psphotImageMedian.c
===================================================================
--- trunk/psphot/src/psphotImageMedian.c	(revision 7327)
+++ trunk/psphot/src/psphotImageMedian.c	(revision 7341)
@@ -16,5 +16,7 @@
     MAX_SAMPLE_PIXELS = psMetadataLookupF32 (&status, recipe, "IMSTATS_NPIX");
     if (!status) MAX_SAMPLE_PIXELS = 1000;
-    psImageClippedStatsInit(MAX_SAMPLE_PIXELS, 0);
+    unsigned long seed = psMetadataLookupS32 (&status, recipe, "IMSTATS_SEED");
+    if (!status) seed = 0;
+    psImageClippedStatsInit(MAX_SAMPLE_PIXELS, seed);
 
     // subtract this amount extra from the sky
