Add seed to random.

Hopefully should fix those flickering tests.