BF: using local rng in each test case