cfengine/core — pull request #755 by jimis (2013-06-12 09:23:52+00:00)
Title: Call tchdboptimize only in 1% of the OpenTokyoDatabase() calls

Even though we call non-reentrant rand() from multiple thread contexts,
there is no harm done even if bad random numbers are returned.

Adopted from Jeffali's fix at dcdba697.