diff --git a/Src/Base/AMReX_Random.cpp b/Src/Base/AMReX_Random.cpp index e36b291383..eb81c94a03 100644 --- a/Src/Base/AMReX_Random.cpp +++ b/Src/Base/AMReX_Random.cpp @@ -100,7 +100,7 @@ InitRandom (ULong cpu_seed, int nprocs, ULong gpu_seed) #ifdef AMREX_USE_OMP #pragma omp parallel for #endif - for (int tid = 0; tid < nthreads; tid++) { + for (int tid = 0; tid < nthreads; tid++) { ULong init_seed = cpu_seed + tid*nprocs; generators[tid].seed(init_seed);