Set random seed to ensure repeatability of tests.