@@ -32,7 +32,7 @@ namespace hemelb::redblood
3232     */  
3333    class  RBCInserter 
3434    {
35-        public: 
35+     public: 
3636        /* *
3737         * Creates an RBC Inserter. 
3838         * 
@@ -106,12 +106,14 @@ namespace hemelb::redblood
106106    // ! Red blood cell inserter that adds random rotation and translation to each cell
107107    class  RBCInserterWithPerturbation  : public  RBCInserter 
108108    {
109-       public: 
109+     public: 
110+         using  PRNG = std::minstd_rand;
111+ 
110112        RBCInserterWithPerturbation (std::function<bool ()> condition,
111113                                    std::unique_ptr<CellBase const > cell,
112114                                    util::Matrix3D const  &initialRotation, Angle dtheta, Angle dphi,
113115                                    LatticePosition const & dx, LatticePosition const & dy,
114-                                     std::default_random_engine:: result_type randomGeneratorSeed = std::default_random_engine ::default_seed) :
116+                                     PRNG:: result_type randomGeneratorSeed = PRNG ::default_seed) :
115117            RBCInserter (condition, std::move(cell)), initialRotation(initialRotation),
116118                dtheta (dtheta), dphi(dphi), dx(dx), dy(dy), randomGenerator(randomGeneratorSeed), uniformDistribution(-1.0 ,1.0 )
117119        {
@@ -129,7 +131,7 @@ namespace hemelb::redblood
129131        // ! Two vectors alongst which to move cell
130132        LatticePosition dx, dy;
131133
132-         std::default_random_engine  randomGenerator;
134+         PRNG  randomGenerator;
133135        std::uniform_real_distribution<double > uniformDistribution;
134136    };
135137
0 commit comments