unfortunately, this is very bad practice. First of all, if test crashes, it's difficult to reproduce. Secondly, as we found with other non-deterministic tests, sometimes they generate such tests that the algorithm fails. So, please, declare some constant on top of the file, e.g. <pre>static int LSD_TEST_SEED = 0x12345;</pre> and use it instead getTickCount().