This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Win32: added per-thread random seeding.
The change in b91bcba29351 was not enough to fix random() seeding. On Windows, the srand() seeds the PRNG only in the current thread, and worse, is not inherited from the calling thread. Due to this, worker threads were not properly seeded. Reported by Marc Bevand.
- Loading branch information
Showing 1 changed file with 2 additions and 0 deletions.