reset random seed on grunt

This commit is contained in:
roberto@debian32
2011-06-18 06:58:01 +02:00
parent 0c0c2736a7
commit 0a98550770
4 changed files with 38 additions and 18 deletions
+3
View File
@@ -2215,6 +2215,9 @@ PyObject *py_uwsgi_grunt(PyObject * self, PyObject * args) {
uwsgi.workers[uwsgi.mywid].id = uwsgi.mywid;
// this field will be overwrite after each call
uwsgi.workers[uwsgi.mywid].pid = uwsgi.mypid;
// reset the random seed
uwsgi_python_reset_random_seed();
// TODO
// manage thread in grunt processes
Py_INCREF(Py_True);