Skip to content

Commit

Permalink
Do not use R's RNG to generate tree id
Browse files Browse the repository at this point in the history
Closes #386.
  • Loading branch information
gaborcsardi committed Apr 2, 2024
1 parent 95ba3aa commit c3ab227
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ get_tool <- function(prog) {

get_id <- function() {
paste0(
"PS",
paste(sample(c(LETTERS, 0:9), 10, replace = TRUE), collapse = ""),
basename(tempfile("PS")),

This comment has been minimized.

Copy link
@MichaelChirico

MichaelChirico Apr 3, 2024

nice! should this be tested? happy to file the PR

"_", as.integer(asNamespace("base")$.Internal(Sys.time()))
)
}
Expand Down

0 comments on commit c3ab227

Please sign in to comment.