Use thread-safe RNGWrapper, enable thread-checker and apply necessary const/mutable fixes.
RNGWrapper
const
mutable