'Generate a list of random uint32 numbers to seed the LFSR
states on device.
Returns:
np.array: return a vector of uint32 numbers'

def _gen_dev_randstate(self):

    state_save = self.rng.get_state()
    maxexp = (32 if (sys.maxsize > (2 ** 32)) else 30)
    rand_init = self.rng.random_integers(1, ((2 ** maxexp) - 1), NervanaGPU._RNG_POOL_SIZE)
    rand_init = rand_init.astype(np.uint32)
    self.rng.set_state(state_save)
    return rand_init
