Commit bf8a2706 authored by Lynn Garren's avatar Lynn Garren
Browse files

CLHEP-155: throw if seed is zero

parent 4cca7611
......@@ -588,11 +588,11 @@ void MixMaxRng::seed_spbox(myuint_t seed)
int i;
myuint_t sumtot=0,ovflow=0;
if (seed == 0)
{
fprintf(stderr, " try seeding with nonzero seed next time!\n");
exit(MIXMAX_SEED_WAS_ZERO);
}
if (seed == 0) throw std::runtime_error("try seeding with nonzero seed next time");
// {
//fprintf(stderr, " try seeding with nonzero seed next time!\n");
//exit(MIXMAX_SEED_WAS_ZERO);
// }
myuint_t l = seed;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment