RNG optimizations