IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 7341


Ignore:
Timestamp:
Jun 5, 2006, 11:53:59 AM (20 years ago)
Author:
rhl
Message:

Seed random numbers from IMSTATS_SEED (if defined)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotImageMedian.c

    r7327 r7341  
    1616    MAX_SAMPLE_PIXELS = psMetadataLookupF32 (&status, recipe, "IMSTATS_NPIX");
    1717    if (!status) MAX_SAMPLE_PIXELS = 1000;
    18     psImageClippedStatsInit(MAX_SAMPLE_PIXELS, 0);
     18    unsigned long seed = psMetadataLookupS32 (&status, recipe, "IMSTATS_SEED");
     19    if (!status) seed = 0;
     20    psImageClippedStatsInit(MAX_SAMPLE_PIXELS, seed);
    1921
    2022    // subtract this amount extra from the sky
Note: See TracChangeset for help on using the changeset viewer.