Fixed CUDA random generation entirely.
Fixed CUDA random generation entirely.

The state machine is now called piece-wise, by blocks of size 2^24
at most. 2^24 turns out to be the max precision for single precision
floats (mantissa). Since the randomizer's state is encoded into the
vector itself (floats), it was the easiest fix.

torch/cutorch,hughperkins/cutorch,luketwitter/cutorch,LinusU/cutorch,luketwitter/cutorch,Zhen-hao/cutorch,torch/cutorch,wickedfoo/cutorch,Schakirov/cutorch_my,yvan-sraka/cutorch,0wu/cutorch,adamlerer/cutorch,hughperkins/cutorch,LinusU/cutorch,clementfarabet/cutorch,torch/cutorch,yvan-sraka/cutorch,adamlerer/cutorch,clementfarabet/cutorch,Moodstocks/cutorch,Schakirov/cutorch_my,Zhen-hao/cutorch,fmassa/cutorch,Moodstocks/cutorch,soumith/cutorch,0wu/cutorch,wickedfoo/cutorch