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
Fix type name and parsing for random generator.
[simgrid.git]
/
src
/
surf
/
random_mgr.c
diff --git
a/src/surf/random_mgr.c
b/src/surf/random_mgr.c
index
6fb652d
..
8bad98f
100644
(file)
--- a/
src/surf/random_mgr.c
+++ b/
src/surf/random_mgr.c
@@
-191,7
+191,7
@@
int _rand_r(unsigned int *pseed)
#endif
#endif
-static double custom_random(
Generator
generator, long int *seed)
+static double custom_random(
e_random_generator_t
generator, long int *seed)
{
switch (generator) {
{
switch (generator) {
@@
-252,7
+252,7
@@
double random_generate(random_data_t random)
return X * (random->max - random->min) + random->min;
}
return X * (random->max - random->min) + random->min;
}
-random_data_t random_new(
Generator
generator, long int seed,
+random_data_t random_new(
e_random_generator_t
generator, long int seed,
double min, double max, double mean, double std)
{
random_data_t random = xbt_new0(s_random_data_t, 1);
double min, double max, double mean, double std)
{
random_data_t random = xbt_new0(s_random_data_t, 1);