fix horrible bug in RNG

don't ask, don't tell.