Skip to content

Commit

Permalink
Update util.py
Browse files Browse the repository at this point in the history
TypeError: 'int' object is not callable
  • Loading branch information
paoloemilioserra committed Apr 24, 2024
1 parent 5b68c17 commit 6a38d77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gunicorn/util.py
Expand Up @@ -557,9 +557,9 @@ def redirect(stream, fd_expect):

def seed():
try:
random.seed(os.urandom(64))
random.seed = os.urandom(64)
except NotImplementedError:
random.seed('%s.%s' % (time.time(), os.getpid()))
random.seed = 42


def check_is_writable(path):
Expand Down

0 comments on commit 6a38d77

Please sign in to comment.