Fix various default seeds and unit tests in C and pure Python code.