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
feat: Use 30 bits of R's RNG #1079
Conversation
Current Aviator status
This PR was merged using Aviator. See the real-time status of this PR on the Aviator webapp. Use the Aviator Chrome Extension to see the status of your PR within GitHub.
|
I am confused about why this is not causing mass test failures. This changes the behaviour of the RNG. For the same seed, it should return a different sequence of integers. I just checked in Lines 101 to 116 in b806ec2
Nevertheless, Is something wrong? Do you understand why nothing changed, @ntamas ? All this said, I strongly recommend running revdepchecks again after this PR, @krlmlr The output of some randomized functions should change (and that's fine, but may break some other packages' tests) |
|
We did not change |
Confirming the same results for yesterday's version and the current main branch. set.seed(20240108)
igraph::sample_tree(20)
#> IGRAPH 596b969 U--- 20 19 --
#> + edges from 596b969:
#> [1] 14--16 13--16 5--13 8--13 8--10 10--11 5-- 6 6--15 9--15 9--12
#> [11] 12--18 7--16 12--17 4--17 2--11 2--20 3--18 1--16 15--19 Created on 2024-01-08 with reprex v2.0.2 It looks legit, though. In |
Anyway, running revdepchecks is a good idea here. |
Yes, I also looked in more detail and I think I see why this is happening. Nevertheless, there should be a note in the changelog that randomized functions may not return the same result for the same seed. |
Closes #782.