Bug 61 - RandomVariable::UseGlobalSeed too permissive
RandomVariable::UseGlobalSeed too permissive
Status: RESOLVED FIXED
Product: ns-3
Classification: Unclassified
Component: core
pre-release
All All
: P1 trivial
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-08-02 09:36 EDT by Gustavo J. A. M. Carneiro
Modified: 2008-06-09 14:35 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gustavo J. A. M. Carneiro 2007-08-02 09:36:57 EDT
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...
Comment 1 Mathieu Lacage 2008-06-09 14:35:58 EDT
changeset: 43b3f8ecd86d