Skip to content

Commit

Permalink
swap for cheaper function
Browse files Browse the repository at this point in the history
  • Loading branch information
shikokuchuo committed Sep 5, 2023
1 parent 2b01ad9 commit 35132a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ importFrom(nanonext,weakref)
importFrom(nanonext,weakref_value)
importFrom(nanonext,write_cert)
importFrom(parallel,nextRNGStream)
importFrom(stats,runif)
importFrom(stats,rexp)
2 changes: 1 addition & 1 deletion R/mirai-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
#' stop_aio strcat tls_config unresolved until wait weakref weakref_value
#' write_cert
#' @importFrom parallel nextRNGStream
#' @importFrom stats runif
#' @importFrom stats rexp
#'
#' @docType package
#' @name mirai-package
Expand Down
2 changes: 1 addition & 1 deletion R/mirai.R
Original file line number Diff line number Diff line change
Expand Up @@ -1414,7 +1414,7 @@ init_monitor <- function(sockc, envir) {
}

create_stream <- function(n, seed, envir) {
runif(1L)
rexp(n = 1L)
oseed <- .GlobalEnv[[".Random.seed"]]
RNGkind("L'Ecuyer-CMRG")
if (length(seed)) set.seed(seed)
Expand Down

0 comments on commit 35132a4

Please sign in to comment.