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.

P#79667 2020-07-20 12:55 ( Edited 2020-07-20 12:56)

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.

P#79670 2020-07-20 13:06

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.

P#79700 2020-07-21 02:36

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-04-19 09:00:43 | 0.010s | Q:13