Initialize the PyCrypto random number generator for each thread/process.
Review Request #7111 — Created March 24, 2015 and submitted
PyCrypto requires that the random number be re-generated for every forked process. While this should already be happening, it seems that there are cases where it doesn't. (This may be dependent on the version of PyCrypto.) In order to guarantee that PyCrypto is happy, we'll initialize it during Review Board initialization.
Unit tests pass.
Navigating around Review Board works.
I was not able to reproduce the original bug here, but this should satisfy
the requirements.
- Change Summary:
-
We no longer run this during tests.
- Commit:
-
6a5ee123d22fc5a6f163e0b1bb6f0dd453f1a4b3d0b8b3f570b26f137da6d59ad61038f494a75243
- Diff:
-
Revision 2 (+4)