|
Bugzilla – Full Text Bug Listing |
| Summary: | RandomVariable::UseGlobalSeed too permissive | ||
|---|---|---|---|
| Product: | ns-3 | Reporter: | Gustavo J. A. M. Carneiro <gjcarneiro> |
| Component: | core | Assignee: | ns-bugs <ns-bugs> |
| Status: | RESOLVED FIXED | ||
| Severity: | trivial | ||
| Priority: | P1 | ||
| Version: | pre-release | ||
| Hardware: | All | ||
| OS: | All | ||
changeset: 43b3f8ecd86d |
void RandomVariable::UseGlobalSeed(uint32_t s0, uint32_t s1, uint32_t s2, uint32_t s3, uint32_t s4, uint32_t s5) { if (RandomVariable::globalSeedSet) { cout << "Random number generator already initialized!" << endl; cout << "Call to RandomVariable::UseGlobalSeed() ignored" << endl; return; } These cout's should probably just become a NS_FATAL_ERROR...