diff --git a/src/CUDA/CudaBase.cu b/src/CUDA/CudaBase.cu index f352cf2..03fa327 100644 --- a/src/CUDA/CudaBase.cu +++ b/src/CUDA/CudaBase.cu @@ -8,7 +8,7 @@ __global__ void initcuRandState(curandState *state, int size, int seed = 0) { int idx = blockIdx.x * blockDim.x + threadIdx.x; if (idx < size) { - curand_init(seed + idx, 0, 0, &state[idx]); + curand_init(seed, idx, 0, &state[idx]); } }