Fixed API of RNG classes.