Seems like it would be better to make all tests deterministic, for example by initializing the random number generation with a given seed?