gt
gt copied to clipboard
Use `withr::with_seed()` in `random_id()`
Addition or change of position of a gt should not change the state of the random number generator in the global environment. Fixes #1915
Summary
Thank you for contributing to gt! To make this process easier for everyone, please explain the context and purpose of your contribution. Also, list the changes made to the existing code or documentation.
Related GitHub Issues and PRs
- Ref: #1915
Checklist
- [x] I understand and agree to the Code of Conduct.
- [x] I have listed any major changes in the NEWS.
- [x] I have added
testthatunit tests totests/testthatfor any new functionality.