Fix random seeding, concurrent index, and arg passing.