Skip to content

[Bug] importing "Litestar" somehow makes "Faker" Not Random anymore #1944

Description

@saltcable
  • Faker version: 19.1.0
  • Litestar version: 2.0.0b2
  • OS: Python 3.10.5 (tags/v3.10.5:f377153, Jun 6 2022, 16:14:13) [MSC v.1929 64 bit (AMD64)] on win32

Faker is working fine but when Litestar is imported, it's not random anymore. Same result/output every time.

Steps to reproduce

  1. code (lab.py)
import faker
import litestar  # <<=== the problem

fake = faker.Faker()
print(fake.md5())
  1. run few time
python lab.py
python lab.py
python lab.py

Expected behavior (by removing import litestar)

Random output all the time
7442b46046a7c2d7ca080483a0d45ad4
a87b76986a9afbb9da63dde9ed4d2495
6924bc922dd1db07440ec3298c42afb8

Actual behavior (same environment)

Same every time. for all the functions
9fc4f6348d3311fa3376be5aa395877a
9fc4f6348d3311fa3376be5aa395877a
9fc4f6348d3311fa3376be5aa395877a

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions