Skip to content

Commit

Permalink
Set seed for reproducibility given the use of sample()
Browse files Browse the repository at this point in the history
  • Loading branch information
Anirban166 authored Oct 3, 2024
1 parent 4ecb240 commit b0c10f5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .ci/atime/tests.R
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ test.list <- atime::atime_test_list(
"forderv improved in #4386" = atime::atime_test(
setup = {
options(datatable.forder.auto.index = TRUE, datatable.forder.reuse.sorting = TRUE)
set.seed(1)
dt <- data.table(index = sample(N), values = sample(N))
data.table:::forderv(dt, "index") # Initial sort to create the index and initialize caching
},
Expand Down

0 comments on commit b0c10f5

Please sign in to comment.