Skip to content

Re-seeding instance while using multiple locales doesn't help to get stable values in return #2283

@balovp

Description

@balovp

While re-seeding instance and using multiple locales it doesn't help to get the same values in return. Example below.

from faker import Faker
fake = Faker(["ru_RU", "en_US"])
fake.seed_instance(2613165638)
print(fake.email())
fake.seed_instance(2613165638)
print(fake.email())
fake.seed_instance(2613165638)
print(fake.email())
fake.seed_instance(2613165638)
print(fake.email())

[email protected]
[email protected]
[email protected]
[email protected]

at the same time re-seeding Faker class works well.

from faker import Faker
fake = Faker(["ru_RU", "en_US"])
Faker.seed(2613165638)
print(fake.email())
Faker.seed(2613165638)
print(fake.email())
Faker.seed(2613165638)
print(fake.email())
Faker.seed(2613165638)
print(fake.email())

[email protected]
[email protected]
[email protected]
[email protected]

faker version 37.6.0, windows 11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions