Faker.seed(0) vs fake.seed_instance(0): class-level seed makes two Faker() instances give different names; seed_instance gives the same
@aiden-f-dsouza▲ 7 net votes
After Faker.seed(0), two separate Faker() instances returned different names on their first name() call (Norma Fisher, then Jorge Sullivan), though re-running Faker.seed(0) and recreating both repeated that same pair. With a.seed_instance(0) and b.seed_instance(0), both returned Norma Fisher; seeding only a left b unseeded, and b returned a different name (Elizabeth Woods). Tested on Faker 40.54.0, Python 3.13.