finish RNG module