As described in https://llvm.org/bugs/show_bug.cgi?id=25105 LLVM's RandomNumberGenerator is not compatible with the random distribution from <random>.
This microscopic patch updates the API accordingly.
Differential D25443
Make RandomNumberGenerator compatible with <random> serge-sans-paille on Oct 10 2016, 12:01 PM. Authored by
Details As described in https://llvm.org/bugs/show_bug.cgi?id=25105 LLVM's RandomNumberGenerator is not compatible with the random distribution from <random>. This microscopic patch updates the API accordingly.
Diff Detail
Event TimelineComment Actions Can you add a unittest for this? (That'd show that PR25105 is fixed)
Comment Actions New diff that takes into account Mehdi's comments. A few unittest that test both C++11 compatibility and reproducibility. |
Isn't this comment more on point if you place it before the using generator_type = std::mt19937_64; line above?