Skip to content
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

RNG precautions #1168

Merged
merged 12 commits into from
Oct 12, 2023
Merged

RNG precautions #1168

merged 12 commits into from
Oct 12, 2023

Conversation

wlandau
Copy link
Collaborator

@wlandau wlandau commented Oct 12, 2023

Prework

Related GitHub issues and pull requests

Summary

This PR implements and exports tar_seed_create() to create target-specific seeds, and it uses SHA512 as an additional precaution against overlapping RNG streams. Justification of how targets treats random numbers is now in a new "RNG overlap" section of tar_seed_create().

Thanks @shikokuchuo for the insight in #1139.

Unfortunately, these changes will invalidate all currently built targets because the seeds will be different. To avoid rerunning your whole pipeline, set cue = tar_cue(seed = FALSE) in tar_target().

@wlandau wlandau self-assigned this Oct 12, 2023
@wlandau wlandau merged commit 7802e9b into main Oct 12, 2023
10 of 13 checks passed
@wlandau wlandau deleted the 1139-counter-based branch October 12, 2023 18:25
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.

None yet

1 participant