Skip to content

Conversation

@wch
Copy link
Member

@wch wch commented May 11, 2022

Closes #29. I based this implementation on Shiny's withPrivateSeed() function: https://github.com/rstudio/shiny/blob/78d77ce37/R/utils.R#L54-L88

The one thing I didn't bring over was the call to httpuv::getRNGState(), which was needed because of rstudio/shiny#1763. We probably need something like this in cases where an Rcpp function (in C++) calls this R code, though I don't know for sure right now.. If we implement this, we'll want to do it without bringing in an httpuv dependency or even Rcpp -- we'll want to implement it with C in the src/ directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Isolate random seed for cachem

2 participants