Bug 61

Summary: RandomVariable::UseGlobalSeed too permissive
Product: ns-3 Reporter: Gustavo J. A. M. Carneiro <gjcarneiro>
Component: coreAssignee: ns-bugs <ns-bugs>
Status: RESOLVED FIXED    
Severity: trivial    
Priority: P1    
Version: pre-release   
Hardware: All   
OS: All   

Description Gustavo J. A. M. Carneiro 2007-08-02 09:36:57 UTC
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 UTC
changeset: 43b3f8ecd86d