ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/mdtools/md_code/randomSPRNG.cpp
(Generate patch)

Comparing trunk/mdtools/md_code/randomSPRNG.cpp (file contents):
Revision 223 by chuckv, Fri Jan 3 22:04:50 2003 UTC vs.
Revision 252 by chuckv, Tue Jan 28 22:16:55 2003 UTC

# Line 14 | Line 14 | randomSPRNG::randomSPRNG(iseed){
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines