mirror of
https://github.com/rstudio/shiny.git
synced 2026-02-02 02:34:57 -05:00
10 lines
363 B
R
10 lines
363 B
R
# A scope where we can put mutable global state
|
|
.globals <- new.env(parent = emptyenv())
|
|
|
|
.onLoad <- function(libname, pkgname) {
|
|
# R's lazy-loading package scheme causes the private seed to be cached in the
|
|
# package itself, making our PRNG completely deterministic. This line resets
|
|
# the private seed during load.
|
|
withPrivateSeed(reinitializeSeed())
|
|
}
|