Glancing over the RcppArmadillo code, the Alt RNG setup directly uses R's RNG for uniform (e.g. Rf_runif(). However, the extension code in inst/RcppArmadilloExtension/sample.h does not.
So, likely this will need a patch that mirrors what is available in Base R. c.f. Implementation changes.
This will likely be needed with Rcpp's local variant as well designed by @nathan-russell.
Glancing over the RcppArmadillo code, the Alt RNG setup directly uses R's RNG for uniform (e.g.
Rf_runif(). However, the extension code ininst/RcppArmadilloExtension/sample.hdoes not.So, likely this will need a patch that mirrors what is available in Base R. c.f. Implementation changes.
R_unif_rand()in existing R codeThis will likely be needed with Rcpp's local variant as well designed by @nathan-russell.