| # | Line 14 | Line 14 | int randomSPRNG::nStreamsInitialized = 0; | |
|---|---|---|
| 14 | ||
| 15 | int randomSPRNG::nStreamsInitialized = 0; | |
| 16 | ||
| 17 | < | randomSPRNG::randomSPRNG(iseed){ |
| 17 | > | randomSPRNG::randomSPRNG(int iseed){ |
| 18 | int newSeed; | |
| 19 | nStreamsInitialized++; | |
| 20 | newSeed = abs(iseed) + nStreamsInitialized; | |
| # | Line 40 | Line 40 | randomSPRNG::~randomSPRNG(){ | |
| 40 | } | |
| 41 | ||
| 42 | randomSPRNG::~randomSPRNG(){ | |
| 43 | < | |
| 44 | < | free_sprng(int *thisStream); |
| 45 | < | nStreamsInitialized--; |
| 46 | < | |
| 43 | > | if ( thisStream != NULL){ |
| 44 | > | // free_sprng(*thisStream); |
| 45 | > | nStreamsInitialized--; |
| 46 | > | } |
| 47 | } | |
| 48 | ||
| 49 | ||
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |