I have a fairly large codebase for a game which makes heavy use of
For the purpose of testing, I’d like to be able to make the return values of these methods deterministic, so that they always return the same values each run. How would you go about it?
I know I can probably change every call to something like
MyMath.random() etc. but that would be very labor intensive and also would require changing some linked libraries, so I’d like to avoid this. Maybe a macro of some sort could “override” an existing std method? or is it possible to seed