IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 28, 2022, 2:43:25 PM (4 years ago)
Author:
eugene
Message:

plug a leak in psFitsTableNew.c; fix implementation of FITS_SCALE_ASINH_MANUAL; add option to reweight the errors in LMM; compile-time option to activate a hard-coded random seed (only needed for psLib testing)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psRandom.c

    r23269 r42089  
    3838#include "psAssert.h"
    3939
    40 
    41 unsigned long seed = 0;                 // Seed for RNG
    42 
     40// XXX set to non-zero for a test
     41# define HARDWIRED_SEED 0
     42unsigned long seed = HARDWIRED_SEED;                 // Seed for RNG
    4343
    4444psU64 p_psRandomGetSystemSeed(bool log)
     
    7171psU64 psRandomSeed(psU64 value)
    7272{
     73    if (HARDWIRED_SEED) {
     74        seed = HARDWIRED_SEED;
     75        return seed;
     76    }
     77
    7378    while (value == 0) {
    7479        value = p_psRandomGetSystemSeed(false);
Note: See TracChangeset for help on using the changeset viewer.