modify prng function to inline assmebler