Fix warnings in mersenne twister