Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make static const #1440

Merged
merged 3 commits into from Nov 14, 2013
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion SimRomanPot/SimFP420/src/GaussNoiseProducerFP420.cc
Expand Up @@ -39,7 +39,7 @@ void GaussNoiseProducerFP420::generate(int NumberOfchannels,
// draw noise at random according to Gaussian tail

// initialise default gsl uniform generator engine
static gsl_rng * mt19937 = gsl_rng_alloc (gsl_rng_mt19937);
static gsl_rng const * mt19937 = gsl_rng_alloc (gsl_rng_mt19937);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I should have said make this
static gsl_rng const * const mt19937 = ...


float lowLimit = threshold * noiseRMS;
for (int i = 0; i < numberOfNoisyChannels; i++) {
Expand Down