version 1.6, 2010/04/07 13:45:03
|
version 1.59, 2017/06/28 09:20:31
|
Line 1
|
Line 1
|
/* |
/* |
================================================================================ |
================================================================================ |
RPL/2 (R) version 4.0.14 |
RPL/2 (R) version 4.1.27 |
Copyright (C) 1989-2010 Dr. BERTRAND Joël |
Copyright (C) 1989-2017 Dr. BERTRAND Joël |
|
|
This file is part of RPL/2. |
This file is part of RPL/2. |
|
|
Line 20
|
Line 20
|
*/ |
*/ |
|
|
|
|
#include "rpl.conv.h" |
#include "rpl-conv.h" |
|
|
|
|
void |
void |
initialisation_generateur_aleatoire(struct_processus *s_etat_processus, |
initialisation_generateur_aleatoire(struct_processus *s_etat_processus, |
logical1 initialisation_automatique, unsigned long int racine) |
logical1 initialisation_automatique, integer8 racine) |
{ |
{ |
struct timeval horodatage; |
struct timeval horodatage; |
|
|
Line 47 initialisation_generateur_aleatoire(stru
|
Line 47 initialisation_generateur_aleatoire(stru
|
gettimeofday(&horodatage, NULL); |
gettimeofday(&horodatage, NULL); |
|
|
gsl_rng_set((*s_etat_processus).generateur_aleatoire, |
gsl_rng_set((*s_etat_processus).generateur_aleatoire, |
(unsigned long int) (horodatage.tv_usec | horodatage.tv_sec)); |
(unsigned long int) (horodatage.tv_usec ^ horodatage.tv_sec)); |
} |
} |
else |
else |
{ |
{ |
gsl_rng_set((*s_etat_processus).generateur_aleatoire, racine); |
gsl_rng_set((*s_etat_processus).generateur_aleatoire, |
|
(unsigned long int) racine); |
} |
} |
|
|
return; |
return; |