jeudi 30 septembre 2021

Can I temporarily disable random / srand in c++?

I have a very large codebase that uses srand and rand that I need to debug. The random executions make debugging difficult, since bugs occur randomly too. Is there any way to temporary make the library execute deterministically so I can debug the code?




Aucun commentaire:

Enregistrer un commentaire