From 379c333733b63b0ce8588f09e0743866c066a858 Mon Sep 17 00:00:00 2001 From: boufaras Date: Fri, 4 Feb 2011 16:11:51 +0000 Subject: [PATCH] git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2103 331e1502-861f-0410-8da2-ba01fb791d7f --- ParadisEO-GPU/src/cudaType/moCudaIntVector.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ParadisEO-GPU/src/cudaType/moCudaIntVector.h b/ParadisEO-GPU/src/cudaType/moCudaIntVector.h index 687a94f1b..8f6e3ef46 100644 --- a/ParadisEO-GPU/src/cudaType/moCudaIntVector.h +++ b/ParadisEO-GPU/src/cudaType/moCudaIntVector.h @@ -101,7 +101,7 @@ public: vect[i] = i; // we want a random permutation so we shuffle for (unsigned i = 0; i < N; i++) { - random = rand() % (N - i) + i; + random = rng.rand() % (N - i) + i; temp = vect[i]; vect[i] = vect[random]; vect[random] = temp;