debug2
make randomness deterministic