Remove unused variables, set reproducible random results in a benchmark