Revision 08285dff src/envir/envirbase.h

View differences:

src/envir/envirbase.h
108 108
// end
109 109

  
110 110
    // Random number generators. Module RNG's map to these RNG objects.
111
    int num_rngs;
112
    cRNG **rngs;
113

  
114
    cRNG *seedGenerator; // central (and private) random num gen for generating seeds for all public ones
111
    int num_rngs_per_module;
112
	std::vector<cRNG*> rngs;
115 113

  
116 114
    // Output file managers
117 115
    EventlogFileManager *eventlogmgr;  // NULL if no event log is being written, must be non NULL if record_eventlog is true
......
195 193
    // leave to subclasses: virtual cEnvir& flush();
196 194

  
197 195
    // RNGs
198
    virtual int getNumRNGs() const;
196
    virtual int getNumRNGsPerModule() const;
199 197
    virtual cRNG *getRNG(int k);
200 198
    virtual void getRNGMappingFor(cComponent *component);
201 199

  
......
222 220
    virtual bool idle();
223 221
    //@}
224 222

  
223
	virtual void createRNGs();
224

  
225 225
  protected:
226 226
    // functions added locally
227 227
    virtual bool simulationRequired();
......
272 272
    // Utility function: optionally appends host name to fname
273 273
    virtual void processFileName(opp_string& fname);
274 274

  
275

  
276
    cRNG *getSeedGenerator() const { return seedGenerator; }
277

  
278 275
  protected:
279 276
    // Utility function: checks simulation fingerprint and displays a message accordingly
280 277
    void checkFingerprint();

Also available in: Unified diff