Fix *gen to prng->gen