test_sample_weight_invariance: use fixed seed in random weights