Re: [Rcpp-devel] thread safety RNG

2022-10-21 Thread Dirk Eddelbuettel
Hi Konrad, I have been meaning to look at ast2ast for some time now but alas no time yet... On 21 October 2022 at 12:15, konrad wrote: | my package ast2ast includes currently some random number generation | functions (e.g. R::dunif) within the C++ code. | | So my question is whether the RNG fu

[Rcpp-devel] thread safety RNG

2022-10-21 Thread konrad
Dear all, my package ast2ast includes currently some random number generation functions (e.g. R::dunif) within the C++ code. So my question is whether the RNG functions in the namespace 'R' are thread safe? Moreover, I would like to know how to handle the functions GetRNGstate() and PutRN