Per #91 this PR preserves the seed of the random number generator on package attachment.
This does add {withr} as a hard dependency. Whilst I think we could avoid this (maybe setting .Random.seed back on.exit is sufficient), {withr} is lightweight and well tested so I erred towards using it rather than missing something subtle.
Per #91 this PR preserves the seed of the random number generator on package attachment.
This does add {withr} as a hard dependency. Whilst I think we could avoid this (maybe setting .Random.seed back on.exit is sufficient), {withr} is lightweight and well tested so I erred towards using it rather than missing something subtle.