CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RandomNumberGeneratorState.h
Go to the documentation of this file.
1 #ifndef DataFormats_Common_RandomNumberGeneratorState_h
2 #define DataFormats_Common_RandomNumberGeneratorState_h
3 
4 /*----------------------------------------------------------------------
5 
6 RandomNumberGeneratorState is used to communicate with an external process
7 ----------------------------------------------------------------------*/
8 
9 #include <vector>
10 namespace edm {
12  RandomNumberGeneratorState() = default;
13  RandomNumberGeneratorState(std::vector<unsigned long> iState, long iSeed)
14  : state_(std::move(iState)), seed_{iSeed} {}
15 
18 
21 
22  std::vector<unsigned long> state_;
23  long seed_;
24  };
25 } // namespace edm
26 #endif
std::vector< unsigned long > state_
RandomNumberGeneratorState & operator=(RandomNumberGeneratorState const &)=default
RandomNumberGeneratorState(std::vector< unsigned long > iState, long iSeed)
def move
Definition: eostools.py:511