update THCTensorRandom