From 8e38a1af6876a9a9ba2713671afebf55b94d755b Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Sun, 9 Jun 2024 22:13:58 +0200
Subject: [PATCH] testings: replace new random by testing_ialea

---
 testing/testing_zgemm_batch.c  | 6 +++---
 testing/testing_zherk_batch.c  | 4 ++--
 testing/testing_zpotrf_batch.c | 2 +-
 testing/testing_ztrsm_batch.c  | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/testing/testing_zgemm_batch.c b/testing/testing_zgemm_batch.c
index ed335643a..c3a61d034 100644
--- a/testing/testing_zgemm_batch.c
+++ b/testing/testing_zgemm_batch.c
@@ -48,9 +48,9 @@ testing_zgemm_batch_desc( run_arg_list_t *args, int check )
     int                   K      = run_arg_get_int( args, "K", N );
     CHAMELEON_Complex64_t alpha  = testing_zalea();
     CHAMELEON_Complex64_t beta   = testing_zalea();
-    int                   seedA  = run_arg_get_int( args, "seedA", random() );
-    int                   seedB  = run_arg_get_int( args, "seedB", random() );
-    int                   seedC  = run_arg_get_int( args, "seedC", random() );
+    int                   seedA  = run_arg_get_int( args, "seedA", testing_ialea() );
+    int                   seedB  = run_arg_get_int( args, "seedB", testing_ialea() );
+    int                   seedC  = run_arg_get_int( args, "seedC", testing_ialea() );
 
     /* Descriptors */
     int          Am, An, Bm, Bn;
diff --git a/testing/testing_zherk_batch.c b/testing/testing_zherk_batch.c
index 47a6bc86a..4f149ea70 100644
--- a/testing/testing_zherk_batch.c
+++ b/testing/testing_zherk_batch.c
@@ -48,8 +48,8 @@ testing_zherk_batch_desc( run_arg_list_t *args, int check )
     double        alpha = testing_dalea();
     double        beta  = testing_dalea();
     double        bump  = 0.;
-    int           seedA = run_arg_get_int( args, "seedA", random() );
-    int           seedC = run_arg_get_int( args, "seedC", random() );
+    int           seedA = run_arg_get_int( args, "seedA", testing_ialea() );
+    int           seedC = run_arg_get_int( args, "seedC", testing_ialea() );
 
     /* Descriptors */
     int          Am, An;
diff --git a/testing/testing_zpotrf_batch.c b/testing/testing_zpotrf_batch.c
index eb4b6d115..27d17b301 100644
--- a/testing/testing_zpotrf_batch.c
+++ b/testing/testing_zpotrf_batch.c
@@ -43,7 +43,7 @@ testing_zpotrf_batch_desc( run_arg_list_t *args, int check )
     int           P     = parameters_getvalue_int( "P" );
     cham_uplo_t   uplo  = run_arg_get_uplo( args, "uplo", ChamUpper );
     int           N     = run_arg_get_int( args, "N", 320 );
-    int           seedA = run_arg_get_int( args, "seedA", random() );
+    int           seedA = run_arg_get_int( args, "seedA", testing_ialea() );
     int           Q     = parameters_compute_q( P );
 
     /* Descriptors */
diff --git a/testing/testing_ztrsm_batch.c b/testing/testing_ztrsm_batch.c
index 44702794f..318aa33bd 100644
--- a/testing/testing_ztrsm_batch.c
+++ b/testing/testing_ztrsm_batch.c
@@ -48,8 +48,8 @@ testing_ztrsm_batch_desc( run_arg_list_t *args, int check )
     int                   N     = run_arg_get_int( args, "N", 320 );
     int                   M     = run_arg_get_int( args, "M", N );
     CHAMELEON_Complex64_t alpha = testing_zalea();
-    int                   seedA = run_arg_get_int( args, "seedA", random() );
-    int                   seedB = run_arg_get_int( args, "seedB", random() );
+    int                   seedA = run_arg_get_int( args, "seedA", testing_ialea() );
+    int                   seedB = run_arg_get_int( args, "seedB", testing_ialea() );
 
     /* Descriptors */
     int          Am, An, Bm, Bn;
-- 
GitLab