fixed a bug where improper multi-threaded usage of boost rng was corrupting heap (in ways that valgrind could not detect)