A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'models_type_rework_part2_try2' into 'master'
[simgrid.git]
/
include
/
xbt
/
random.hpp
diff --git
a/include/xbt/random.hpp
b/include/xbt/random.hpp
index
7d4e4ef
..
8510d35
100644
(file)
--- a/
include/xbt/random.hpp
+++ b/
include/xbt/random.hpp
@@
-1,4
+1,4
@@
-/* Copyright (c) 2019-202
0
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2019-202
1
. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
@@
-85,8
+85,7
@@
public:
*/
class XBT_PUBLIC StdRandom : public Random {
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;
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:
*/
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;
int uniform_int(int min, int max) override;
double uniform_real(double min, double max) override;