From a6177edc0df7918ba54c1ad074a883b67195e4ce Mon Sep 17 00:00:00 2001 From: Steven Robertson Date: Fri, 28 Oct 2011 08:36:27 -0400 Subject: [PATCH] Drop the RNG mult shuffle. It's surprisingly time-consuming, and until I have data showing that we need it, I'm going to leave this bit of extra randomness voodoo out. --- cuburn/code/mwc.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/cuburn/code/mwc.py b/cuburn/code/mwc.py index 3e2966f..b5bdb94 100644 --- a/cuburn/code/mwc.py +++ b/cuburn/code/mwc.py @@ -53,11 +53,6 @@ __device__ float mwc_next_11(mwc_st &st) { # Create the seed structures. TODO: check that struct is 4-byte aligned seeds = np.empty((3, nthreads), dtype=np.uint32, order='F') - - # Randomness in choosing multipliers is good, but larger multipliers - # have longer periods, which is also good. This is a compromise. - mults = np.array(mults[:nthreads*4]) - rand.shuffle(mults) seeds[0][:] = mults[:nthreads] # Excludes 0xffffffff for 32-bit compatibility with laziness