[R] allow using seed with regular RNG (#10029)

This commit is contained in:
david-cortes
2024-02-04 09:22:22 +01:00
committed by GitHub
parent 662854c7d7
commit a730c7e67e
7 changed files with 78 additions and 15 deletions

View File

@@ -31,7 +31,7 @@ namespace xgboost::common {
*/
using RandomEngine = std::mt19937;
#if XGBOOST_CUSTOMIZE_GLOBAL_PRNG
#if defined(XGBOOST_CUSTOMIZE_GLOBAL_PRNG) && XGBOOST_CUSTOMIZE_GLOBAL_PRNG == 1
/*!
* \brief An customized random engine, used to be plugged in PRNG from other systems.
* The implementation of this library is not provided by xgboost core library.