Log In  


Does the random value generation by srand() always produce the same pattern output as long as the same seed value is input?

Does the output pattern change due to a change in the environment?
For example, the upgrades, the amount of code, the timing of the exports, the machine or OS you're running...

So far I haven't been able to verify much and I haven't encountered the fact that the output results have changed, but I am concerned.

Thanks for your help.



1

The algorithm hasn’t changed in years and some carts such as Lander on Planet Cheese rely on its reproducibility, so I think it’s safe to assume it won’t change.


Thanks @samhocevar !

If it hasn't been changed in a few years, I'm relieved!
I can't think of any need to change that algorithm either.



[Please log in to post a comment]