Details
-
Bug
-
Status: Resolved
-
Critical
-
Resolution: Fixed
-
1.9.1
-
Issue can be reproduced in Linux with clang and on Android arm64 and armeabi with android NDK r19c.
Description
The single instance of random is not thread safe, and can seg fault.
It can be fixed with a global std::mutex next to the global boost::mt19937 generator and a std::unique_lock in the method, or by creating the mersenne_twister_engine as a local variable in the function.
Attachments
Issue Links
- links to