Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Drop xbt_str_split().
[simgrid.git] / include / xbt / random.hpp
index 7d4e4ef30b14a746a12c0fb4157b9e2c4b831458..b8a24748547034d87aab21f1353c5d9ebad773af 100644 (file)
@@ -85,8 +85,7 @@ public:
  */
 class XBT_PUBLIC StdRandom : public Random {
 public:
-  StdRandom() = default;
-  explicit StdRandom(int seed) : Random(seed) {}
+  using Random::Random;
 
   int uniform_int(int min, int max) override;
   double uniform_real(double min, double max) override;
@@ -100,8 +99,7 @@ public:
  */
 class XBT_PUBLIC XbtRandom : public Random {
 public:
-  XbtRandom() = default;
-  explicit XbtRandom(int seed) : Random(seed) {}
+  using Random::Random;
 
   int uniform_int(int min, int max) override;
   double uniform_real(double min, double max) override;