The function is not taking any seed argument to perform controlled randomization. The random generator was being reset and then restored again for no reason. The restoreSeed function which was later invoked was erroring out because the global variables were not set.
The function is not taking any seed argument to perform controlled randomization. The random generator was being reset and then restored again for no reason. The restoreSeed function which was later invoked was erroring out because the global variables were not set.