-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
future (>= 1.24.0): Now future(…, seed = TRUE) forwards the RNG state #1
Comments
@HenrikBengtsson Thanks for letting me know, but I'm confused about a couple things:
|
If you specify a constant So, the results in your example above expected, and has always worked that way as far as I can tell.
It was only "safe" to use a <- rnorm(1)
b <- rnorm(1) where you get two different random numbers, you didn't get that with: a %<-% rnorm(1) %seed% TRUE
b %<-% rnorm(1) %seed% TRUE I think most people would assume them to be different, not the same. That is what is fixed in future 1.24.0. No need for people to roll their own L’Ecuyer-CMRG seeds. PS. From the way you phrased https://github.com/berkeley-scf/tutorial-dask-future, I assumed you interpreted the future (< 1.24.0) behavior this way. |
ok, thanks. I'm still a bit confused about what I was thinking previously, but how things work now seems clear and useful. |
Hi. FYI, future 1.24.0 is now on CRAN. A signficant change is:
So, your https://berkeley-scf.github.io/tutorial-dask-future/R-future#82-the-seed-when-using-futures-directly section can now be updated, because we now get:
The text was updated successfully, but these errors were encountered: