diff --git a/THANKS b/THANKS index 3b9fa666..30498a6c 100644 --- a/THANKS +++ b/THANKS @@ -13,3 +13,5 @@ Chris Dent Matt Good Randall Leeds thomasst +Jonas Borgström + diff --git a/gunicorn/workers/base.py b/gunicorn/workers/base.py index cf2d52d4..e87f2939 100644 --- a/gunicorn/workers/base.py +++ b/gunicorn/workers/base.py @@ -6,6 +6,7 @@ import logging import os +import random import signal import sys import tempfile @@ -82,6 +83,9 @@ class Worker(object): """ util.set_owner_process(self.cfg.uid, self.cfg.gid) + # Reseed the random number generator + random.seed() + # For waking ourselves up self.PIPE = os.pipe() map(util.set_non_blocking, self.PIPE)