From f3f2463dc9f019f06bd74203b8382f140d519735 Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Thu, 5 Oct 2006 06:03:01 +0000 Subject: [PATCH] Do the correct cast. This commit was SVN r12010. --- orte/util/pre_condition_transports.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/orte/util/pre_condition_transports.c b/orte/util/pre_condition_transports.c index 2bf0d4bca7..096c3a0da4 100644 --- a/orte/util/pre_condition_transports.c +++ b/orte/util/pre_condition_transports.c @@ -91,8 +91,13 @@ int orte_pre_condition_transports(orte_app_context_t **app_context, size_t num_c } } #else - rand_s( &unique_key[0] ); - rand_s( &unique_key[1] ); + { + unsigned int random_value; + rand_s( &random_value ); + unique_key[0] = (uint64_t)random_value; + rand_s( &random_value ); + unique_key[1] = (uint64_t)random_value; + } #endif /* !defined(__WINDOWS__) */ sprintf(string_key, ORTE_TRANSPORT_KEY_FMT, (long unsigned)unique_key[0],