Fix RNG generate function prototype.