Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CLHEP
CLHEP
Commits
bf8a2706
Commit
bf8a2706
authored
Jun 19, 2019
by
Lynn Garren
Browse files
CLHEP-155
: throw if seed is zero
parent
4cca7611
Changes
1
Hide whitespace changes
Inline
Side-by-side
Random/src/MixMaxRng.cc
View file @
bf8a2706
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment