with the Boost.Stacktrace library.
You won't see your backtraces without this optional dependency.
- Bump cmake dependency to 3.5 (provided by Ubuntu 16.04).
+ - Stop setting random seed with srand() at initialization.
MSG:
- Drop MSG_process_create_from_stdfunc() from the API.
#define MPI_MAX_OBJECT_NAME 100
#define MPI_MAX_PORT_NAME 100
#define MPI_MAX_LIBRARY_VERSION_STRING 100
-#define SMPI_RAND_SEED 5
#define MPI_ANY_SOURCE -555
#define MPI_BOTTOM (void *)-111
#define MPI_PROC_NULL -666
int smpi_main(const char* executable, int argc, char* argv[])
{
- srand(SMPI_RAND_SEED);
-
if (getenv("SMPI_PRETEND_CC") != nullptr) {
/* Hack to ensure that smpicc can pretend to be a simple compiler. Particularly handy to pass it to the
* configuration tools */
static void xbt_preinit()
{
- unsigned int seed = 2147483647;
#ifdef _WIN32
SYSTEM_INFO si;
GetSystemInfo(&si);
xbt_log_preinit();
xbt_dict_preinit();
- srand(seed);
#ifndef _WIN32
- srand48(seed);
+ constexpr unsigned seed = 2147483647;
+ srand48(seed); // FIXME: still worthwhile?
#endif
atexit(xbt_postexit);
}