I am testing some code with some random numbers generated with the current time as the seed using
srand(time(0))
I'd like to get the same random numbers every time when I run it. So I want to set the value of current time to some predefined value temporarily just before running the program. And please don't ask me to remove random number temporarily as it is extremely essential.
Also, I don't have root access, so I can't set the date/time using the date
command or its programmatic equivalent.